From 3849dee47e2331504f5e95db0dd542423be5159e Mon Sep 17 00:00:00 2001 From: = Date: Sat, 24 Jul 2021 16:09:22 -0400 Subject: [PATCH] Fix lowercase --- ReleaseNotes.md | 3 +++ commands/savegif.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ReleaseNotes.md b/ReleaseNotes.md index c697dfd..acffeaf 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -1,5 +1,8 @@ # Release Notes +## v2.2.1 Hotfix +Fix bug where saved content isn't saved as lowercase, making in unaccessible. + ## v2.2.0 NodBot no longer stores saved GIFs, Copypastas, and other custom content locally. This means no more discrepancies between versions of the bot! diff --git a/commands/savegif.js b/commands/savegif.js index 202f46d..8034010 100644 --- a/commands/savegif.js +++ b/commands/savegif.js @@ -80,7 +80,7 @@ module.exports = { nameCollector.on('collect', nameMessage => { channel.send('The GIF has been saved as: ' + nameMessage.content + '.gif'); - functions.saveGif(message, nameMessage.content, data.embed_url); + functions.saveGif(message, nameMessage.content.toLowerCase(), data.embed_url); }); nameCollector.on('end', (collected, reason) => { switch (reason) {