if invidious returns nothing
This commit is contained in:
parent
12be399f32
commit
67a9c8325c
|
@ -23,6 +23,11 @@ const command = {
|
||||||
console.log("Error fetching from invidious: " + err.message)
|
console.log("Error fetching from invidious: " + err.message)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (!data) {
|
||||||
|
await client.say(msg.channelName, `${msg.displayName}, nothing found`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
await client.say(
|
await client.say(
|
||||||
msg.channelName,
|
msg.channelName,
|
||||||
`${msg.displayName}, YouTube video with search term: ${splitted
|
`${msg.displayName}, YouTube video with search term: ${splitted
|
||||||
|
|
Loading…
Reference in New Issue