if invidious returns nothing

This commit is contained in:
Joonas 2023-02-11 14:56:21 +02:00
parent 12be399f32
commit 67a9c8325c
1 changed files with 5 additions and 0 deletions

View File

@ -23,6 +23,11 @@ const command = {
console.log("Error fetching from invidious: " + err.message)
);
if (!data) {
await client.say(msg.channelName, `${msg.displayName}, nothing found`);
return;
}
await client.say(
msg.channelName,
`${msg.displayName}, YouTube video with search term: ${splitted