mirror of
https://github.com/hazemKrimi/discord-bot.git
synced 2026-05-01 18:30:25 +00:00
removed dotenv and fixed bug in play from youtube search
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user