dosent work
This commit is contained in:
parent
05856065ec
commit
df35443f29
2 changed files with 0 additions and 62 deletions
|
@ -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);
|
|
||||||
});
|
|
||||||
}};
|
|
|
@ -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);
|
|
||||||
});
|
|
||||||
}};
|
|
Loading…
Reference in a new issue