forked from Supositware/Haha-Yes
make the update lowercase
This commit is contained in:
parent
29413cd355
commit
903f9cd59e
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ class TagCommand extends Command {
|
||||||
const filter = m => m.content && m.author.id == message.author.id;
|
const filter = m => m.content && m.author.id == message.author.id;
|
||||||
message.channel.awaitMessages(filter, {time: 5000, max: 1, errors: ['time'] })
|
message.channel.awaitMessages(filter, {time: 5000, max: 1, errors: ['time'] })
|
||||||
.then(async messages => {
|
.then(async messages => {
|
||||||
let messageContent = messages.map(messages => messages.content);
|
let messageContent = messages.map(messages => messages.content.toLowerCase());
|
||||||
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};
|
||||||
await Tag.update(body, {where: {trigger: args.trigger, serverID: message.guild.id}});
|
await Tag.update(body, {where: {trigger: args.trigger, serverID: message.guild.id}});
|
||||||
|
|
Loading…
Reference in a new issue