Remove all useless async

This commit is contained in:
Daniel Odendahl Jr
2017-03-24 12:16:58 +00:00
parent 33b7d18d54
commit 0ce7eb3ee1
95 changed files with 287 additions and 287 deletions
+4 -4
View File
@@ -20,7 +20,7 @@ module.exports = class YodaCommand extends commando.Command {
console.log(`[Command] ${message.content}`);
let turnToYoda = message.content.split(" ").slice(1).join(" ");
if (!turnToYoda) {
message.channel.send(':x: Error! Nothing to translate!');
return message.channel.send(':x: Error! Nothing to translate!');
}
else {
try {
@@ -34,14 +34,14 @@ module.exports = class YodaCommand extends commando.Command {
sentence: turnToYoda
});
if (!response) {
message.channel.send(':x: Error! Something went wrong! Keep it simple to avoid this error.');
return message.channel.send(':x: Error! Something went wrong! Keep it simple to avoid this error.');
}
else {
message.channel.send(response.text);
return message.channel.send(response.text);
}
}
catch (err) {
message.channel.send(":x: Error! Something went wrong!");
return message.channel.send(":x: Error! Something went wrong!");
}
}
}