forked from adh319/Lunox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix reconnect log issue - Some changes NOTE: Since the update v2.3.0, i made changes to the mongodb database structure. So, you need to use new mongodb url. Also, I made some change to files please read the README.md carefully.
- Loading branch information
Showing
7 changed files
with
25 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
const MainClient = require("./lunox.js"); | ||
const client = new MainClient(); | ||
const { ClusterManager } = require("discord-hybrid-sharding"); //imports the sharding manager | ||
require("dotenv").config(); | ||
|
||
client.connect(); | ||
const manager = new ClusterManager(`${__dirname}/manager.js`, { | ||
totalShards: "auto", // you can set to every number you want but for save mode, use "auto" option | ||
shardsPerClusters: 2, // Default is 2, you can any bigger number you want | ||
totalClusters: "auto", // you can set to every number you want but for save mode, use "auto" option | ||
mode: "process", // you can also choose "worker" | ||
token: process.env.TOKEN || "YOUR_BOT_TOKEN", //paste your token here | ||
}); | ||
|
||
module.exports = client; | ||
manager.on("clusterCreate", (cluster) => console.log(`[INFO] Launched Cluster ${cluster.id}`)); | ||
manager.spawn({ timeout: -1 }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const MainClient = require("./lunox.js"); | ||
const client = new MainClient(); | ||
|
||
client.connect(); | ||
|
||
module.exports = client; |
This file was deleted.
Oops, something went wrong.