forked from Supositware/Haha-Yes
did a huge mistake, now fixed
This commit is contained in:
parent
d39620e15b
commit
cecb25fc8c
2 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ class TagCommand extends Command {
|
||||||
let messageContent = messages.map(messages => messages.content);
|
let messageContent = messages.map(messages => messages.content);
|
||||||
if (messageContent == 'y' || messageContent == 'yes') {
|
if (messageContent == 'y' || messageContent == 'yes') {
|
||||||
const body = {trigger: args.trigger, response: args.response, ownerID: message.author.id, serverID: message.guild.id};
|
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}`);
|
return message.channel.send(`tag have been set to ${args.trigger} : ${args.response}`);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -55,7 +55,7 @@ class addResponseCommand extends Command {
|
||||||
let messageContent = messages.map(messages => messages.content);
|
let messageContent = messages.map(messages => messages.content);
|
||||||
if (messageContent == 'y' || messageContent == 'yes') {
|
if (messageContent == 'y' || messageContent == 'yes') {
|
||||||
const body = {trigger: args.trigger, response: args.response, type: args.type};
|
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}`);
|
return message.channel.send(`autoresponse have been set to ${args.trigger} : ${args.response} with type: ${args.type}`);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue