From 50f8bfe619ef8a61fea9dacfb531a503a6673ab1 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Fri, 16 Jul 2021 11:50:54 -0400 Subject: [PATCH] Adding some stuff for testing --- commands/newgif.js | 12 ++++++++++++ commands/newpng.js | 12 ++++++++++++ commands/oldgif.js | 7 +++++++ config.json | 5 ++++- functions.js | 1 + 5 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 commands/newgif.js create mode 100644 commands/newpng.js create mode 100644 commands/oldgif.js diff --git a/commands/newgif.js b/commands/newgif.js new file mode 100644 index 0000000..a0656b0 --- /dev/null +++ b/commands/newgif.js @@ -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('.'))); + } +} \ No newline at end of file diff --git a/commands/newpng.js b/commands/newpng.js new file mode 100644 index 0000000..e6d7cde --- /dev/null +++ b/commands/newpng.js @@ -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('.'))); + } +} \ No newline at end of file diff --git a/commands/oldgif.js b/commands/oldgif.js new file mode 100644 index 0000000..6c75bf3 --- /dev/null +++ b/commands/oldgif.js @@ -0,0 +1,7 @@ +module.exports = { + name: 'oldgif', + description: '', + execute(message, file) { + message.channel.send('https://imgur.com/a/IMxDZZ7'); + } +} \ No newline at end of file diff --git a/config.json b/config.json index 46c50cc..60d686a 100644 --- a/config.json +++ b/config.json @@ -17,7 +17,10 @@ "ping", "strain", "airport", - "weather" + "weather", + "oldgif", + "newgif", + "newpng" ], "emoji": { "joint": "<:joint:862082955902976000>", diff --git a/functions.js b/functions.js index f483fc8..a2a38b1 100644 --- a/functions.js +++ b/functions.js @@ -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}`);