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
+2 -2
View File
@@ -18,11 +18,11 @@ module.exports = class ReverseCommand extends commando.Command {
console.log(`[Command] ${message.content}`);
let stringToReverse = message.content.split(" ").slice(1).join(" ");
if (!stringToReverse) {
return message.channel.send(":x: Error! Nothing to reverse!");
message.channel.send(":x: Error! Nothing to reverse!");
}
else {
let reversed = stringToReverse.split("").reverse().join("");
return message.channel.send(reversed);
message.channel.send(reversed);
}
}
};