More Formatting Woot

This commit is contained in:
Daniel Odendahl Jr
2017-03-23 02:02:42 +00:00
parent 40a4af36c4
commit 3b007758aa
38 changed files with 51 additions and 43 deletions
+8 -2
View File
@@ -18,6 +18,7 @@ const dictionary = {
"meal": "tem flakes",
"meals": "tem flakes",
"human": "hooman",
"humans": "hoomans",
"chocolate": "choco",
"cute": "coot",
"allergic": "allergics",
@@ -191,7 +192,12 @@ module.exports = class TemmieCommand extends commando.Command {
}
console.log("[Command] " + message.content);
let thingToTranslate = message.content.split(" ").slice(1).join(" ");
let temmized = temmize(thingToTranslate);
message.channel.send(temmized);
if (!thingToTranslate) {
message.channel.send(':x: Error! Nothing to translate!');
}
else {
let temmized = temmize(thingToTranslate);
message.channel.send(temmized);
}
}
};