Remove tons of faulty awaits

This commit is contained in:
Daniel Odendahl Jr
2017-03-23 13:39:50 +00:00
parent 29ac65d220
commit 7d1b54b5e6
14 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ module.exports = class RinSayCommand extends commando.Command {
}
console.log(`[Command] ${message.content}`);
let rinContent = message.content.split(" ").slice(1).join(" ");
await request
return request
.post(config.webhook)
.send({
content: rinContent
+1 -1
View File
@@ -138,7 +138,7 @@ module.exports = class TranslateCommand extends commando.Command {
return message.channel.send(":x: Error! Please keep translations below 200 characters!");
}
else {
await translate(thingToTranslate, {
return translate(thingToTranslate, {
to: languageto
}).then(res => {
let languagefrom = res.from.language.iso.toLowerCase();
+1 -1
View File
@@ -23,7 +23,7 @@ module.exports = class YodaCommand extends commando.Command {
return message.channel.send(':x: Error! Nothing to translate!');
}
else {
await request
return request
.get('https://yoda.p.mashape.com/yoda')
.set({
'X-Mashape-Key': config.mashapekey,