From 5bf6f16646c73db75366185eff7b0df51e9693b9 Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Tue, 18 Dec 2018 17:01:28 +0100 Subject: [PATCH] Fixed server info --- commands/utility/server.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/commands/utility/server.js b/commands/utility/server.js index 538eb230..8f2a4486 100644 --- a/commands/utility/server.js +++ b/commands/utility/server.js @@ -18,8 +18,13 @@ module.exports = class ServerCommand extends Command { if(blacklistJson[message.author.id]) return blacklist(blacklistJson[message.author.id] , message) - let customresponse = new SelfReloadJSON(`./tag/${message.guild.id}.json`); - let count = Object.keys(customresponse).length + try { + let customresponse = new SelfReloadJSON(`./tag/${message.guild.id}.json`); + var count = Object.keys(customresponse).length + } catch { + var count = 'None' + } + const addEmbed = { color: 0x0099ff,