fix allowing bot to play more songs for no reason

This commit is contained in:
Histmy 2021-10-27 21:44:04 +02:00
parent 1c2aeee297
commit 277fb6bcc2

View File

@ -11,7 +11,7 @@ module.exports = {
const kanel = mes.member?.voice.channel;
if (!kanel) return "nejsi ve vojsu ty kkt";
const { conn } = await joinVoice(kanel, mes.guild!);
play(conn, ytdl(url));
play(conn, ytdl(url).on("error", e => console.log(e)));
}
}
};