mirror of
https://github.com/musix-org/musix-oss
synced 2025-08-01 17:44:35 +00:00
update 3.0.5
This commit is contained in:
4
index.js
4
index.js
@@ -1,4 +1,4 @@
|
||||
const config = require("./src/struct/config/config.js");
|
||||
const config = require("./src/struct/config/config.ts");
|
||||
|
||||
if (config.devMode) {
|
||||
config.token = config.devToken;
|
||||
@@ -6,7 +6,7 @@ if (config.devMode) {
|
||||
}
|
||||
|
||||
const { ShardingManager } = require('discord.js');
|
||||
const manager = new ShardingManager('./src/bot.js', { token: config.token, respawn: config.respawn, totalShards: config.shards });
|
||||
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);
|
||||
|
Reference in New Issue
Block a user