From ce911ff11b373285e3c544eec034107d2ab3fefd Mon Sep 17 00:00:00 2001 From: = Date: Sat, 24 Jul 2021 16:08:34 -0400 Subject: [PATCH] cleanup --- commands/newgif.js | 12 ------------ commands/newpng.js | 12 ------------ commands/savepasta.js | 2 +- 3 files changed, 1 insertion(+), 25 deletions(-) delete mode 100644 commands/newgif.js delete mode 100644 commands/newpng.js diff --git a/commands/newgif.js b/commands/newgif.js deleted file mode 100644 index a0656b0..0000000 --- a/commands/newgif.js +++ /dev/null @@ -1,12 +0,0 @@ -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 deleted file mode 100644 index e6d7cde..0000000 --- a/commands/newpng.js +++ /dev/null @@ -1,12 +0,0 @@ -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/savepasta.js b/commands/savepasta.js index 848ad4b..a675084 100644 --- a/commands/savepasta.js +++ b/commands/savepasta.js @@ -11,7 +11,7 @@ module.exports = { const pastaCollector = promptMessage.channel.createMessageCollector(pastaFilter, { time: 30000, max: 1 }); pastaCollector.on('collect', pastaMessage => { - message.channel.send(functions.savePasta(message, file.name, functions.cleanInput(pastaMessage.content))); + message.channel.send(functions.savePasta(message, file.name.toLowerCase(), functions.cleanInput(pastaMessage.content))); }) }) .catch(err => console.error(err));