The Power of const

This commit is contained in:
Daniel Odendahl Jr
2017-04-03 22:31:19 +00:00
parent 4f0f1b4ad2
commit 76907549df
87 changed files with 525 additions and 558 deletions
+3 -3
View File
@@ -27,10 +27,10 @@ module.exports = class GoogleCommand extends commando.Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
}
console.log(`[Command] ${message.content}`);
let thingToSearch = args.query;
let searchMsg = await message.say('Searching...');
const thingToSearch = args.query;
const searchMsg = await message.say('Searching...');
try {
let response = await request
const response = await request
.get(`https://www.google.com/search`)
.query({
q: thingToSearch