1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
import { Command, CommandoMessage } from 'discord.js-commando';
import emoji from 'emoji-random';
module.exports = class CommandsAmountBot extends Command {
constructor(client) {
super(client, {
name: 'commandsamount',
aliases: [
'commands-amount',
'cmdsamount',
'cmds-amount'
],
group: 'bot',
memberName: 'commandsamount',
description: 'Tells you the amount of available commands uwufier has.',
examples: ['uwu!cmdsamount'],
userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
throttling: {
usages: 5,
duration: 30
}
});
}
async run(msg: CommandoMessage) {
msg.reply(`${this.client.user?.tag} has ${this.client.registry.commands.size} available commands! ${emoji.random()}`)
}
};
|