Update Bot Guild number

This commit is contained in:
Ralph 2021-04-05 11:39:38 -04:00 committed by GitHub
parent 13cf17ed53
commit cbe3f032fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,7 +41,7 @@ let commands = {
let bot = new Discord.Client(); let bot = new Discord.Client();
bot.on('ready', function() { bot.on('ready', function() {
console.log('Logged in! Serving in ' + bot.guilds.array().length + ' servers'); console.log('Logged in! Serving in ' + bot.guilds.cache.size + ' servers');
require('./plugins.js').init(); require('./plugins.js').init();
console.log('type ' + config.prefix + 'help in Discord for a commands list.'); console.log('type ' + config.prefix + 'help in Discord for a commands list.');
bot.user.setActivity(config.prefix + 'help', { type: 'LISTENING' }).catch(console.error); bot.user.setActivity(config.prefix + 'help', { type: 'LISTENING' }).catch(console.error);