Fix lowercase
This commit is contained in:
parent
861922a906
commit
3849dee47e
@ -1,5 +1,8 @@
|
|||||||
# Release Notes
|
# Release Notes
|
||||||
|
|
||||||
|
## v2.2.1 Hotfix
|
||||||
|
Fix bug where saved content isn't saved as lowercase, making in unaccessible.
|
||||||
|
|
||||||
## v2.2.0
|
## 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!
|
NodBot no longer stores saved GIFs, Copypastas, and other custom content locally. This means no more discrepancies between versions of the bot!
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ module.exports = {
|
|||||||
|
|
||||||
nameCollector.on('collect', nameMessage => {
|
nameCollector.on('collect', nameMessage => {
|
||||||
channel.send('The GIF has been saved as: ' + nameMessage.content + '.gif');
|
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) => {
|
nameCollector.on('end', (collected, reason) => {
|
||||||
switch (reason) {
|
switch (reason) {
|
||||||
|
Loading…
Reference in New Issue
Block a user