Adding some stuff for testing

This commit is contained in:
Skylar Grant 2021-07-16 11:50:54 -04:00
parent e7e308ebb8
commit 50f8bfe619
5 changed files with 36 additions and 1 deletions

12
commands/newgif.js Normal file
View File

@ -0,0 +1,12 @@
const functions = require('../functions.js');
module.exports = {
name: 'newgif',
description: '',
execute(message, file) {
const data = {
"embed_url": 'https://imgur.com/a/IMxDZZ7'
}
message.channel.send(functions.createGifEmbed(data, message.author, Object.values(file).join('.')));
}
}

12
commands/newpng.js Normal file
View File

@ -0,0 +1,12 @@
const functions = require('../functions.js');
module.exports = {
name: 'newpng',
description: '',
execute(message, file) {
const data = {
"embed_url": 'https://imgur.com/gallery/5ausYBw'
}
message.channel.send(functions.createGifEmbed(data, message.author, Object.values(file).join('.')));
}
}

7
commands/oldgif.js Normal file
View File

@ -0,0 +1,7 @@
module.exports = {
name: 'oldgif',
description: '',
execute(message, file) {
message.channel.send('https://imgur.com/a/IMxDZZ7');
}
}

View File

@ -17,7 +17,10 @@
"ping",
"strain",
"airport",
"weather"
"weather",
"oldgif",
"newgif",
"newpng"
],
"emoji": {
"joint": "<:joint:862082955902976000>",

View File

@ -48,6 +48,7 @@ module.exports = {
createGifEmbed(data, author, command) {
return new Discord.MessageEmbed()
.setAuthor(command)
.setDescription(data.embed_url)
.setImage(data.embed_url)
.setTimestamp()
.setFooter(`@${author.username}#${author.discriminator}`);