1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-08-01 17:44:35 +00:00

Update V3.2.0

This commit is contained in:
MatteZ02
2020-04-19 20:00:16 +03:00
parent ce214a827f
commit ec07bdb5a3
33 changed files with 2319 additions and 659 deletions

View File

@@ -1,4 +1,4 @@
const config = require("./src/struct/config/config.ts");
const config = require("./config/config.ts");
if (config.devMode) {
console.log('- dev mode- ');
@@ -6,8 +6,14 @@ if (config.devMode) {
config.shards = 1;
}
const { ShardingManager } = require('discord.js');
const manager = new ShardingManager('./src/bot.ts', { token: config.token, respawn: config.respawn, totalShards: config.shards });
const {
ShardingManager
} = require('discord.js');
const manager = new ShardingManager('./src/bot.ts', {
token: config.token,
respawn: config.respawn,
totalShards: config.shards
});
console.log('- Launching shards -');
manager.spawn(config.shards, config.shardDelay, config.shardTimeout);