From dcb84188d351bce8fca196012c5ab5f9dc890159 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Fri, 13 Sep 2019 18:51:10 +0200 Subject: [PATCH] moved to --remove in tag command --- commands/admin/untag.js | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 commands/admin/untag.js diff --git a/commands/admin/untag.js b/commands/admin/untag.js deleted file mode 100644 index f5be06aa..00000000 --- a/commands/admin/untag.js +++ /dev/null @@ -1,40 +0,0 @@ -const { Command } = require('discord-akairo'); -const Tag = require('../../models').Tag; - -class UnTagCommand extends Command { - constructor() { - super('untag', { - aliases: ['untag', 'removetag', 'delete'], - category: 'admin', - userPermissions: ['MANAGE_MESSAGES'], - args: [ - { - id: 'trigger', - type: 'string', - match: 'rest', - prompt: { - start: 'wich tag do you want to remove?', - } - } - ], - channelRestriction: 'guild', - description: { - content: 'Remove created custom autoresponse', - usage: '[trigger]', - examples: ['do you know da wea'] - } - }); - } - - async exec(message, args) { - const tag = await Tag.findOne({where: {trigger: args.trigger, serverID: message.guild.id}}); - if (tag) { - Tag.destroy({where: {trigger: args.trigger, serverID: message.guild.id}}); - return message.channel.send('successfully deleted the following tag: ' + args.trigger); - } else { - return message.channel.send('Did not find the specified tag, are you sure it exist?'); - } - } -} - -module.exports = UnTagCommand; \ No newline at end of file