1
0
Markus-Rost 5 жил өмнө
parent
commit
db5f3a9a49
2 өөрчлөгдсөн 2 нэмэгдсэн , 3 устгасан
  1. 1 1
      bot.js
  2. 1 2
      main.js

+ 1 - 1
bot.js

@@ -6006,7 +6006,7 @@ client.on( 'error', error => log_error(error, true) );
 client.on( 'warn', warning => log_warn(warning, false) );
 
 if ( isDebug ) client.on( 'debug', debug => {
-	if ( isDebug ) console.log( '- ' + shardId + 'Debug: ' + debug );
+	if ( isDebug ) console.log( '- ' + shardId + ': Debug: ' + debug );
 } );
 
 process.on( 'message', message => {

+ 1 - 2
main.js

@@ -1,9 +1,8 @@
 require('dotenv').config();
 const {ShardingManager} = require('discord.js');
-const manager = new ShardingManager( './main.js', {
+const manager = new ShardingManager( './bot.js', {
 	execArgv: ['--icu-data-dir=node_modules/full-icu'],
 	shardArgs: ( process.argv[2] === 'debug' ? ['debug'] : [] ),
-	totalShards:2,
 	token: process.env.token
 } );