diff --git a/src/lib/events/guilds.js b/src/lib/events/guilds.js index b4cb0b76..dbb3ba6d 100644 --- a/src/lib/events/guilds.js +++ b/src/lib/events/guilds.js @@ -9,7 +9,7 @@ module.exports = bot => { if (guild.members.filter(m => m.bot).filter / guild.members.size >= 0.50) { logger.info(`Detected bot collection guild '${guild.name}' (${guild.id}). Autoleaving...`); await guild.leave(); - } else if (!bot.config.gameURL || bot.config.gameURL === null) { + } else if (!bot.config.gameURL) { await bot.editStatus('online', { name: `${bot.config.gameName || `${bot.config.mainPrefix}help for commands!`} | ${bot.guilds.size} ${bot.guilds.size === 1 ? 'server' : 'servers'}`, type: 0, @@ -27,7 +27,7 @@ module.exports = bot => { bot.on('guildDelete', async guild => { if (guild.members.filter(m => m.bot).filter / guild.members.size >= 0.50) return; - if (!bot.config.gameURL || bot.config.gameURL === null) { + if (!bot.config.gameURL) { await bot.editStatus('online', { name: `${bot.config.gameName || `${bot.config.mainPrefix}help for commands!`} | ${bot.guilds.size} ${bot.guilds.size === 1 ? 'server' : 'servers'}`, type: 0, diff --git a/src/lib/events/ready.js b/src/lib/events/ready.js index 6043df70..5759082f 100644 --- a/src/lib/events/ready.js +++ b/src/lib/events/ready.js @@ -35,7 +35,7 @@ module.exports = bot => { logger.error(`Error while starting up:\n${err.stack}`); } } else logger.info('Reconnected to Discord from disconnection.'); - if (!bot.config.gameURL || bot.config.gameURL === null) { + if (!bot.config.gameURL) { await bot.editStatus('online', { name: `${bot.config.gameName || `${bot.config.mainPrefix}help for commands!`} | ${bot.guilds.size} ${bot.guilds.size === 1 ? 'server' : 'servers'}`, type: 0,