Bug fixes

This commit is contained in:
Daniel Odendahl Jr
2018-04-04 19:14:20 +00:00
parent 95a37134ed
commit 8cbbcecb70
4 changed files with 8 additions and 5 deletions
+3 -1
View File
@@ -33,6 +33,8 @@ module.exports = class Base64Command extends Command {
}
run(msg, { mode, text }) {
return msg.say(base64(text, mode));
const converted = base64(text, mode);
if (!converted) return msg.reply('That is not valid Base64.');
return msg.say(converted);
}
};