Skip to content

Commit

Permalink
Remove play-dl from play music
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMonDon committed Jun 28, 2024
1 parent 2c9a087 commit 127716c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions actions/play_music_MOD.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ module.exports = {
const server = cache.server;
const channel = cache.msg?.channel ?? cache.interaction?.channel;
const { Bot, Files } = this.getDBM();
const Mods = this.getMods();
const playdl = Mods.require('play-dl');
const player = Bot.bot.player;
const voiceChannel = await this.getVoiceChannelFromData(data.voiceChannel, data.varName, cache);

Expand All @@ -104,11 +102,6 @@ module.exports = {
leaveOnEmpty: data.leaveOnEmpty,
leaveOnEmptyCooldown: seconds,
leaveOnEnd: data.leaveOnEnd,
async onBeforeCreateStream(track, source) {
if (source === 'youtube') {
return (await playdl.stream(track.url, { discordPlayerCompatibility: true })).stream;
}
},
});

const track = await player.search(query, {
Expand Down

0 comments on commit 127716c

Please sign in to comment.