return and await

This commit is contained in:
Daniel Odendahl Jr
2017-03-23 13:16:59 +00:00
parent cea110ce4b
commit 7c0a39ec5c
83 changed files with 295 additions and 264 deletions
+2 -2
View File
@@ -288,11 +288,11 @@ module.exports = class TemmieCommand extends commando.Command {
console.log(`[Command] ${message.content}`);
let thingToTranslate = message.content.split(" ").slice(1).join(" ");
if (!thingToTranslate) {
message.channel.send(':x: Error! Nothing to translate!');
return message.channel.send(':x: Error! Nothing to translate!');
}
else {
let temmized = temmize(thingToTranslate);
message.channel.send(temmized);
return message.channel.send(temmized);
}
}
};