diff options
| author | 8cy <[email protected]> | 2020-07-23 23:24:17 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-07-23 23:24:17 -0700 |
| commit | bb511abc03bb66848947e37a999502b813c77269 (patch) | |
| tree | 612c010fc8317e1cdf11471a18aad0270819d33e /src/commands/bot/generatecommands.ts | |
| parent | fix: if clear amount equal or over 100, round down to 99 (diff) | |
| download | dep-core-bb511abc03bb66848947e37a999502b813c77269.tar.xz dep-core-bb511abc03bb66848947e37a999502b813c77269.zip | |
goodbye old uwufier :cry:
Diffstat (limited to 'src/commands/bot/generatecommands.ts')
| -rw-r--r-- | src/commands/bot/generatecommands.ts | 42 |
1 files changed, 0 insertions, 42 deletions
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 |