fixed ownerid

This commit is contained in:
Loïc Bersier 2019-07-09 02:19:44 +02:00
parent 69ac367d71
commit 8abb17c3f3

View file

@ -37,7 +37,7 @@ class TagCommand extends Command {
const tag = await Tag.findOne({where: {trigger: args.trigger, serverID: message.guild.id}}); const tag = await Tag.findOne({where: {trigger: args.trigger, serverID: message.guild.id}});
if (!tag) { if (!tag) {
const body = {trigger: args.trigger, response: args.response, owner: message.author.id, serverID: message.guild.id}; const body = {trigger: args.trigger, response: args.response, ownerID: message.author.id, serverID: message.guild.id};
Tag.create(body); Tag.create(body);
return message.channel.send(`autoresponse have been set to ${args.trigger} : ${args.response}`); return message.channel.send(`autoresponse have been set to ${args.trigger} : ${args.response}`);
} else { } else {