-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
974a94d
commit 82660a3
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |