I'm building a discord bot that sends google image based on the keyword entered in command. When I run this code, I don't get an error but it does not execute.
let args = message.content.substring(Prefix.length).split(" ");
switch(args[0]) {
case "search":
(async () => {
const searchQ = args[1];
results = await google.scrape(searchQ, 6);
message.channel.send(results[0].url);
});
break;
}