fix allowing bot to play more songs for no reason
This commit is contained in:
parent
1c2aeee297
commit
277fb6bcc2
@ -11,7 +11,7 @@ module.exports = {
|
|||||||
const kanel = mes.member?.voice.channel;
|
const kanel = mes.member?.voice.channel;
|
||||||
if (!kanel) return "nejsi ve vojsu ty kkt";
|
if (!kanel) return "nejsi ve vojsu ty kkt";
|
||||||
const { conn } = await joinVoice(kanel, mes.guild!);
|
const { conn } = await joinVoice(kanel, mes.guild!);
|
||||||
play(conn, ytdl(url));
|
play(conn, ytdl(url).on("error", e => console.log(e)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user