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()}`) } };