Skip to content

Commit

Permalink
Create goose.js
Browse files Browse the repository at this point in the history
  • Loading branch information
RXNationGMG authored Dec 4, 2021
1 parent 974a94d commit 82660a3
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions commands/image/goose.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const Discord = require('discord.js');
const { MessageEmbed } = require('discord.js');
const superagent = require('superagent');

module.exports = {
config: {
name: "goose",
noalias: [''],
category: "image",
description: "Shows random goose image",
usage: "",
accessableby: "everyone"
},
run: async (bot, message, args) => {

let victim = message.mentions.users.first() || (args.length > 0 ? message.users.cache.filter(e => e.username.toLowerCase().includes(args.join(" ").toLowerCase())).first(): message.author) || message.author;
const { body } = await superagent
.get("https://nekos.life/api/v2/img/goose");
const embed = new MessageEmbed()
.setColor("FF0000")
.setTitle("Here's your Goose Image 🤗")
.setImage(body.url)
.setTimestamp()
.setFooter('© RXNationBot');
message.channel.send(embed);
}
}

0 comments on commit 82660a3

Please sign in to comment.