From cecb25fc8c0c39a976348eaf0542b3c580514675 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bersier?= Date: Fri, 12 Jul 2019 17:28:30 +0200 Subject: [PATCH] did a huge mistake, now fixed --- commands/admin/tag.js | 2 +- commands/owner/addResponse.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/admin/tag.js b/commands/admin/tag.js index 83569a5e..de71fae4 100644 --- a/commands/admin/tag.js +++ b/commands/admin/tag.js @@ -48,7 +48,7 @@ class TagCommand extends Command { let messageContent = messages.map(messages => messages.content); if (messageContent == 'y' || messageContent == 'yes') { const body = {trigger: args.trigger, response: args.response, ownerID: message.author.id, serverID: message.guild.id}; - Tag.update(body, {where: {serverID: message.guild.id}}); + Tag.update(body, {where: {trigger: args.trogger, serverID: message.guild.id}}); return message.channel.send(`tag have been set to ${args.trigger} : ${args.response}`); } }) diff --git a/commands/owner/addResponse.js b/commands/owner/addResponse.js index f08d9015..0dc5fc14 100644 --- a/commands/owner/addResponse.js +++ b/commands/owner/addResponse.js @@ -55,7 +55,7 @@ class addResponseCommand extends Command { let messageContent = messages.map(messages => messages.content); if (messageContent == 'y' || messageContent == 'yes') { const body = {trigger: args.trigger, response: args.response, type: args.type}; - autoResponse.update(body, {where: {serverID: message.guild.id}}); + autoResponse.update(body, {where: {trigger: args.triggers}}); return message.channel.send(`autoresponse have been set to ${args.trigger} : ${args.response} with type: ${args.type}`); } })