From 80951013e391aab140800e4f386867e6c391553f Mon Sep 17 00:00:00 2001 From: 8cy <50817549+8cy@users.noreply.github.com> Date: Sat, 27 Jun 2020 22:52:54 -0700 Subject: add ts defs so not a lot of errors left - made .todo file for epic error tracking --- src/commands/animals/cow.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/commands/animals/cow.ts') diff --git a/src/commands/animals/cow.ts b/src/commands/animals/cow.ts index 80eedf0..3c84f09 100644 --- a/src/commands/animals/cow.ts +++ b/src/commands/animals/cow.ts @@ -1,8 +1,9 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; +import { Command, CommandoMessage, CommandoClient } from 'discord.js-commando'; +//@ts-ignore no types import cows from 'cows'; module.exports = class CowAnimals extends Command { - constructor(client) { + constructor(client: CommandoClient) { super(client, { name: 'cow', aliases: ['cows'], @@ -21,6 +22,6 @@ module.exports = class CowAnimals extends Command { run(msg: CommandoMessage) { let cowNumber = Math.round((Math.random() * cows().length)) let cow = cows()[cowNumber] - msg.reply(`\`\`\`${cow}\`\`\``); + return msg.reply(`\`\`\`${cow}\`\`\``); } }; \ No newline at end of file -- cgit v1.2.3