Fix lowercase

This commit is contained in:
= 2021-07-24 16:09:22 -04:00
parent 861922a906
commit 3849dee47e
2 changed files with 4 additions and 1 deletions

View File

@ -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!

View File

@ -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) {