From 71f7d3beb6fb0e0db431b00474d4240dbdeac60b Mon Sep 17 00:00:00 2001 From: loicbersier Date: Tue, 23 Jul 2019 21:26:41 +0200 Subject: [PATCH] fix typo --- commands/admin/autoresponse.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/admin/autoresponse.js b/commands/admin/autoresponse.js index 30ca89b8..a0616061 100644 --- a/commands/admin/autoresponse.js +++ b/commands/admin/autoresponse.js @@ -30,17 +30,17 @@ class autoresponseCommand extends Command { } async exec(message, args) { - if (args.stat == 'enable' || args.stat == 'disable') { + if (args.stat.toLowerCase() == 'enable' || args.stat.toLowerCase() == 'disable') { const autoresponseStat = await autoResponseStat.findOne({where: {serverID: message.guild.id}}); if (!autoresponseStat) { const body = {serverID: message.guild.id, stat: args.stat}; autoResponseStat.create(body); - return message.channel.send(`Autoresponse have been ${args.stat}ed`); + return message.channel.send(`Autoresponse have been ${args.stat}d`); } else { const body = {serverID: message.guild.id, stat: args.stat}; autoResponseStat.update(body, {where: {serverID: message.guild.id}}); - return message.channel.send(`Autoresponse have been ${args.stat}ed`); + return message.channel.send(`Autoresponse have been ${args.stat}d`); } } }