From bb511abc03bb66848947e37a999502b813c77269 Mon Sep 17 00:00:00 2001 From: 8cy <50817549+8cy@users.noreply.github.com> Date: Thu, 23 Jul 2020 23:24:17 -0700 Subject: goodbye old uwufier :cry: --- src/commands/bot/generatecommands.ts | 42 ------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 src/commands/bot/generatecommands.ts (limited to 'src/commands/bot/generatecommands.ts') diff --git a/src/commands/bot/generatecommands.ts b/src/commands/bot/generatecommands.ts deleted file mode 100644 index e1079f1..0000000 --- a/src/commands/bot/generatecommands.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; - -module.exports = class GenerateCommandsBot extends Command { - constructor(client) { - super(client, { - name: 'generatecommands', - aliases: [ - 'generate-commands', - 'generatecmds', - 'generate-cmds', - 'gencommands', - 'gen-commands', - 'gencmds', - 'gen-cmds' - ], - group: 'bot', - memberName: 'generatecommands', - description: 'Generates a .txt file with all of the available commands.', - examples: ['uwu!gencmds'], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - }, - ownerOnly: true, - guarded: true - }); - } - async run(msg: CommandoMessage) { - const list = this.client.registry.groups - .map(g => { - const commands = g.commands.filter(c => !c.hidden) - return `\n### ${g.name}\n\n${commands.map(c => { - const extra = `${c.ownerOnly ? ' (Owner-Only)' : ''}${c.nsfw ? ' (NSFW)' : ''}` - return `* ** ${c.name}:** ${c.description}${extra}` - }).join('\n')}` - }) - const text = `Total: ${this.client.registry.commands.size}\n${list.join('\n')}` - return msg.reply({ files: [{ attachment: Buffer.from(text), name: 'commands.txt' }] }) - } -}; \ No newline at end of file -- cgit v1.2.3