Proper await

This commit is contained in:
Daniel Odendahl Jr
2017-03-24 02:29:31 +00:00
parent 5329d08581
commit 122fcf5de3
103 changed files with 613 additions and 577 deletions
+20 -3
View File
@@ -213,7 +213,24 @@ const dictionary = {
"sorcery": "magics",
"superpower": "magics",
"superpowers": "magics",
"sorceries": "magics"
"sorceries": "magics",
"and": "n",
"my": "tem's",
"mine": "tem's",
"everyone": "everytem",
"anyone": "anytem",
"someone": "sometem",
"everbody": "everytemmie",
"anybody": "anytemmie",
"somebody": "sometemmie",
"beautiful": "booftifull",
"pretty": "prety",
"so": "soooo",
"help": "halp",
"uh-uh": "nuh",
"nope": "nuh",
"nuh-uh": "nuh",
"please": "pls"
};
function translateWord(word) {
@@ -288,11 +305,11 @@ module.exports = class TemmieCommand extends commando.Command {
console.log(`[Command] ${message.content}`);
let thingToTranslate = message.content.split(" ").slice(1).join(" ");
if (!thingToTranslate) {
return message.channel.send(':x: Error! Nothing to translate!');
message.channel.send(':x: Error! Nothing to translate!');
}
else {
let temmized = temmize(thingToTranslate);
return message.channel.send(temmized);
message.channel.send(temmized);
}
}
};