Can't assign a new const idiot

This commit is contained in:
Daniel Odendahl Jr
2017-04-11 20:15:48 +00:00
parent 03dbd5ab58
commit f7b5c5d939
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -53,9 +53,9 @@ module.exports = class MemeCommand extends Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission('ATTACH_FILES')) return message.say(':x: Error! I don\'t have the Attach Files Permission!'); if (!message.channel.permissionsFor(this.client.user).hasPermission('ATTACH_FILES')) return message.say(':x: Error! I don\'t have the Attach Files Permission!');
} }
const type = args.type.toLowerCase(); const type = args.type.toLowerCase();
const toprow = args.toprow.replace(/[ ]/g, '-'); let toprow = args.toprow.replace(/[ ]/g, '-');
toprow = toprow.replace(/[?]/g, '~q'); toprow = toprow.replace(/[?]/g, '~q');
const bottomrow = args.bottomrow.replace(/[ ]/g, '-'); let bottomrow = args.bottomrow.replace(/[ ]/g, '-');
bottomrow = bottomrow.replace(/[?]/g, '~q'); bottomrow = bottomrow.replace(/[?]/g, '~q');
const link = `https://memegen.link/${type}/${toprow}/${bottomrow}.jpg`; const link = `https://memegen.link/${type}/${toprow}/${bottomrow}.jpg`;
return message.channel.sendFile(link).catch(() => message.say(':x: Error! Something went wrong!')); return message.channel.sendFile(link).catch(() => message.say(':x: Error! Something went wrong!'));
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "xiaobot", "name": "xiaobot",
"version": "23.0.1", "version": "23.0.2",
"description": "A Discord Bot", "description": "A Discord Bot",
"main": "shardingmanager.js", "main": "shardingmanager.js",
"repository": { "repository": {