diff options
Diffstat (limited to 'src/commands/animals/cow.ts')
| -rw-r--r-- | src/commands/animals/cow.ts | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/commands/animals/cow.ts b/src/commands/animals/cow.ts new file mode 100644 index 0000000..80eedf0 --- /dev/null +++ b/src/commands/animals/cow.ts @@ -0,0 +1,26 @@ +import { Command, CommandoMessage } from 'discord.js-commando'; +import cows from 'cows'; + +module.exports = class CowAnimals extends Command { + constructor(client) { + super(client, { + name: 'cow', + aliases: ['cows'], + group: 'animals', + memberName: 'cow', + description: 'Gives you a random cow.', + throttling: { + usages: 5, + duration: 30 + }, + examples: ['uwu!cow', 'uwu!cows'], + userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], + clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] + }); + } + run(msg: CommandoMessage) { + let cowNumber = Math.round((Math.random() * cows().length)) + let cow = cows()[cowNumber] + msg.reply(`\`\`\`${cow}\`\`\``); + } +};
\ No newline at end of file |