forked from Supositware/Haha-Yes
Fixed server command
This commit is contained in:
parent
478facea23
commit
134a45dbd0
1 changed files with 8 additions and 2 deletions
|
@ -24,8 +24,14 @@ class ServerCommand extends Command {
|
||||||
else if (autoresponse[message.channel.id] == 'enable')
|
else if (autoresponse[message.channel.id] == 'enable')
|
||||||
autoresponseStatus = 'enabled';
|
autoresponseStatus = 'enabled';
|
||||||
|
|
||||||
|
let count;
|
||||||
|
|
||||||
|
try {
|
||||||
const customresponse = require(`../../tag/${message.guild.id}.json`);
|
const customresponse = require(`../../tag/${message.guild.id}.json`);
|
||||||
var count = Object.keys(customresponse).length;
|
count = Object.keys(customresponse).length;
|
||||||
|
} catch (e) {
|
||||||
|
count = 0;
|
||||||
|
}
|
||||||
|
|
||||||
const addEmbed = new MessageEmbed()
|
const addEmbed = new MessageEmbed()
|
||||||
.setColor('#0099ff')
|
.setColor('#0099ff')
|
||||||
|
|
Loading…
Reference in a new issue