summaryrefslogtreecommitdiff
path: root/src/commands/animals/duck.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/animals/duck.ts')
-rw-r--r--src/commands/animals/duck.ts39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/commands/animals/duck.ts b/src/commands/animals/duck.ts
deleted file mode 100644
index a3683e0..0000000
--- a/src/commands/animals/duck.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-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 DuckAnimals extends Command {
- constructor(client: CommandoClient) {
- super(client, {
- name: 'duck',
- aliases: [
- 'randomduck',
- 'random-duck'
- ],
- group: 'animals',
- memberName: 'duck',
- description: 'Gives you a random duck.',
- examples: ['uwu!duck'],
- throttling: {
- usages: 5,
- duration: 30
- },
- userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
- clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY']
- });
- }
- async run(msg: CommandoMessage) {
- try {
- let emb = new MessageEmbed()
- .setAuthor('random-d.uk', 'https://random-d.uk/favicon.ico', 'https://random-d.uk')
- .setColor(0xFFCC4D)
- .setImage(await (await axios.get('https://random-d.uk/api/v1/random?type=gif')).data.url)
- return msg.say(emb)
- } catch (err) {
- console.log(err)
- return msg.reply('Woops, there was an error with the (https://random-d.uk) API. ' + emoji.random())
- }
- }
-}; \ No newline at end of file