summaryrefslogtreecommitdiff
path: root/src/commands/animals/owl.ts
diff options
context:
space:
mode:
author8cy <[email protected]>2020-06-27 22:52:54 -0700
committer8cy <[email protected]>2020-06-27 22:52:54 -0700
commit80951013e391aab140800e4f386867e6c391553f (patch)
tree3d7101237ef1cd8d6fe2a2fab751a2dc55ae7d84 /src/commands/animals/owl.ts
parentmore config shit (diff)
downloaddep-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/owl.ts')
-rw-r--r--src/commands/animals/owl.ts9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/commands/animals/owl.ts b/src/commands/animals/owl.ts
index 9f219ac..6a5f583 100644
--- a/src/commands/animals/owl.ts
+++ b/src/commands/animals/owl.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 OwlAnimals extends Command {
- constructor(client) {
+ constructor(client: CommandoClient) {
super(client, {
name: 'owl',
aliases: [
@@ -29,10 +30,10 @@ module.exports = class OwlAnimals extends Command {
.setAuthor('pics.floofybot.moe/owl', 'http://pics.floofybot.moe/assets/favicon.svg', 'http://pics.floofybot.moe/')
.setColor(0xFFCC4D)
.setImage(await (await axios.get('http://pics.floofybot.moe/owl')).data.image)
- msg.say(emb)
+ return msg.say(emb)
} catch (err) {
console.log(err)
- msg.reply('Woops, there was an error with the (http://pics.floofybot.moe/) API. ' + emoji.random())
+ return msg.reply('Woops, there was an error with the (http://pics.floofybot.moe/) API. ' + emoji.random())
}
}
}; \ No newline at end of file