|
|
|
@ -16,18 +16,15 @@ class TagCommand extends Command {
|
|
|
|
|
start: 'What word or sentence should trigger it?',
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'response',
|
|
|
|
|
type: 'string',
|
|
|
|
|
match: 'rest',
|
|
|
|
|
prompt: {
|
|
|
|
|
start: 'What word or sentence should the response be?',
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'remove',
|
|
|
|
|
match: 'flag',
|
|
|
|
|
flag: '--remove'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'response',
|
|
|
|
|
type: 'string',
|
|
|
|
|
match: 'rest',
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
channelRestriction: 'guild',
|
|
|
|
@ -55,6 +52,10 @@ class TagCommand extends Command {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!args.response) {
|
|
|
|
|
return message.channel.send('Please provide the response for that tag');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!tag) {
|
|
|
|
|
const body = {trigger: args.trigger, response: args.response, ownerID: message.author.id, serverID: message.guild.id};
|
|
|
|
|
await Tag.create(body);
|
|
|
|
|