diff options
| author | 8cy <[email protected]> | 2020-06-27 22:52:54 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-06-27 22:52:54 -0700 |
| commit | 80951013e391aab140800e4f386867e6c391553f (patch) | |
| tree | 3d7101237ef1cd8d6fe2a2fab751a2dc55ae7d84 /src/commands/animals/bunny.ts | |
| parent | more config shit (diff) | |
| download | dep-core-80951013e391aab140800e4f386867e6c391553f.tar.xz dep-core-80951013e391aab140800e4f386867e6c391553f.zip | |
add ts defs so not a lot of errors left
- made .todo file for epic error tracking
Diffstat (limited to 'src/commands/animals/bunny.ts')
| -rw-r--r-- | src/commands/animals/bunny.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/commands/animals/bunny.ts b/src/commands/animals/bunny.ts index fb3b2b8..0da4942 100644 --- a/src/commands/animals/bunny.ts +++ b/src/commands/animals/bunny.ts @@ -1,10 +1,11 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; +import { Command, CommandoMessage, CommandoClient } from 'discord.js-commando'; +//@ts-ignore no types import emoji from 'emoji-random' import { MessageEmbed } from 'discord.js'; import axios from 'axios'; module.exports = class BunnyAnimals extends Command { - constructor(client) { + constructor(client: CommandoClient) { super(client, { name: 'bunny', aliases: [ @@ -29,10 +30,10 @@ module.exports = class BunnyAnimals extends Command { .setAuthor('bunnies.io') .setColor(0xFFCC4D) .setImage(await (await axios.get('https://api.bunnies.io/v2/loop/random/?media=gif,png')).data.media.gif) - msg.say(emb) + return msg.say(emb) } catch (err) { console.log(err) - msg.reply('Woops, there was an error with the (https://api.bunnies.io) API. ' + emoji.random()) + return msg.reply('Woops, there was an error with the (https://api.bunnies.io) API. ' + emoji.random()) } } };
\ No newline at end of file |