From df35443f29a8e27c96a704ced5a1f5103b9e72eb Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Wed, 28 Nov 2018 00:10:18 +0100 Subject: [PATCH] dosent work --- commands/fun/randocat.js | 31 ------------------------------- commands/fun/randodog.js | 31 ------------------------------- 2 files changed, 62 deletions(-) delete mode 100644 commands/fun/randocat.js delete mode 100644 commands/fun/randodog.js diff --git a/commands/fun/randocat.js b/commands/fun/randocat.js deleted file mode 100644 index 8729387d..00000000 --- a/commands/fun/randocat.js +++ /dev/null @@ -1,31 +0,0 @@ -const { Command } = require('discord.js-commando'); -const Discord = require('discord.js'); -const fetch = require('node-fetch') -const blacklist = require('../../json/blacklist.json') - -module.exports = class RandoDogCommand extends Command { - constructor(client) { - super(client, { - name: 'randocat', - group: 'fun', - memberName: 'randocat', - description: `Show a random cat`, - }); - } - - async run(message) { - if(blacklist[message.author.id]) - return message.channel.send("You are blacklisted") - - fetch("http://aws.random.cat/meow").then((response) => { - return response.json(); -}).then((response) => { - const catEmbed = new Discord.RichEmbed() - .setColor("#ff9900") - .setTitle('Meow') - .setImage(response.file) - - - message.say(catEmbed); - }); -}}; \ No newline at end of file diff --git a/commands/fun/randodog.js b/commands/fun/randodog.js deleted file mode 100644 index 8877b2ac..00000000 --- a/commands/fun/randodog.js +++ /dev/null @@ -1,31 +0,0 @@ -const { Command } = require('discord.js-commando'); -const Discord = require('discord.js'); -const fetch = require('node-fetch') -const blacklist = require('../../json/blacklist.json') - -module.exports = class RandoCatCommand extends Command { - constructor(client) { - super(client, { - name: 'randodog', - group: 'fun', - memberName: 'randodog', - description: `Show a random dog`, - }); - } - - async run(message) { - if(blacklist[message.author.id]) - return message.channel.send("You are blacklisted") - - fetch("https://random.dog/woof.json").then((response) => { - return response.json(); -}).then((response) => { - const dogEmbed = new Discord.RichEmbed() - .setColor("#ff9900") - .setTitle('woof') - .setImage(response.url) - - - message.say(dogEmbed); - }); -}}; \ No newline at end of file