mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
CONSOLE.LOG ALL THE THINGS
This commit is contained in:
@@ -32,9 +32,12 @@ module.exports = class DefineCommand extends commando.Command {
|
||||
let href = $('.r').first().find('a').first().attr('href');
|
||||
if (!href) return Promise.reject(new Error('NO RESULTS'));
|
||||
href = querystring.parse(href.replace('/url?', ''));
|
||||
message.channel.send(href.q).catch(console.error);
|
||||
message.channel.send(href.q);
|
||||
console.log(href.q);
|
||||
console.log(href);
|
||||
console.log(thingToSearch);
|
||||
console.log(SEARCH_URL);
|
||||
}).catch(function (err) {
|
||||
console.log(err);
|
||||
message.channel.send(':x: Error! No Results Found!');
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user