removed dotenv and fixed bug in play from youtube search

This commit is contained in:
Hazem Krimi
2020-05-07 12:41:57 +01:00
parent 4e9f48ccaa
commit f25ee734a3
5 changed files with 2 additions and 10 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ module.exports = class Play extends Command {
}
} else {
const videos = await youtube.searchVideos(query, 1);
if (!videos.length === 1) return message.reply('nothing found!');
if (videos.length !== 1) return message.reply('nothing found!');
const video = await youtube.getVideoByID(videos[0].raw.id.videoId);