Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const discord = require("discord.js");
- const superAgent = require("superagent");
- module.exports.run = async (bot, message, args) => {
- var cat;
- cat = await superAgent
- .get("http://aws.random.cat/meow");
- console.log(cat.body);
- while (cat.body.file.endsWith(".webm") || cat.body.file.endsWith(".mp4")) {
- cat = await superAgent
- .get("http://aws.random.cat/meow");
- console.log(cat.body)
- }
- var embed = new discord.RichEmbed()
- .setColor("#880000")
- .setTitle("Cat :cat:")
- .setImage(cat.body.file);
- message.channel.send(embed);
- }
- module.exports.help = {
- name: "cat",
- description: "toont een kat"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement