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
@@ -24,7 +24,7 @@ module.exports = class DefineCommand extends commando.Command {
console.log(`[Command] ${message.content}`);
let thingToSearch = encodeURI(message.content.split(" ").slice(1).join(" "));
await message.channel.send('Searching...').then(msg => {
await request
return request
.get(`https://www.google.com/search?q=${thingToSearch}`)
.then(function(response) {
const $ = cheerio.load(response.text);