Adding some stuff for testing
This commit is contained in:
parent
e7e308ebb8
commit
50f8bfe619
12
commands/newgif.js
Normal file
12
commands/newgif.js
Normal 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
12
commands/newpng.js
Normal 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
7
commands/oldgif.js
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
module.exports = {
|
||||||
|
name: 'oldgif',
|
||||||
|
description: '',
|
||||||
|
execute(message, file) {
|
||||||
|
message.channel.send('https://imgur.com/a/IMxDZZ7');
|
||||||
|
}
|
||||||
|
}
|
@ -17,7 +17,10 @@
|
|||||||
"ping",
|
"ping",
|
||||||
"strain",
|
"strain",
|
||||||
"airport",
|
"airport",
|
||||||
"weather"
|
"weather",
|
||||||
|
"oldgif",
|
||||||
|
"newgif",
|
||||||
|
"newpng"
|
||||||
],
|
],
|
||||||
"emoji": {
|
"emoji": {
|
||||||
"joint": "<:joint:862082955902976000>",
|
"joint": "<:joint:862082955902976000>",
|
||||||
|
@ -48,6 +48,7 @@ module.exports = {
|
|||||||
createGifEmbed(data, author, command) {
|
createGifEmbed(data, author, command) {
|
||||||
return new Discord.MessageEmbed()
|
return new Discord.MessageEmbed()
|
||||||
.setAuthor(command)
|
.setAuthor(command)
|
||||||
|
.setDescription(data.embed_url)
|
||||||
.setImage(data.embed_url)
|
.setImage(data.embed_url)
|
||||||
.setTimestamp()
|
.setTimestamp()
|
||||||
.setFooter(`@${author.username}#${author.discriminator}`);
|
.setFooter(`@${author.username}#${author.discriminator}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user