-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SUCCESS: Bot stops playing after around 1 minute #97
Comments
I have the same thing going on |
How to Fix? |
Discord has made an announcement on the Discord Developers server in regards to the change that broke most musicbots. |
Whoops. Didn't mean to close the issue... Can we get an update for the bot? |
Okay, that's all, but how to fix the situation or wait for the expected fifteen years? |
I think only the author can provide us with a fix for that |
Modified from this: discordjs/discord.js#9185 (comment) This is an issue inside of discord.js related to the screenshot above. You can add a patch to distube (a node module used in this bot) which seems to fix the issue. MusicBot/node_modules/distube/dist/index.js |
That comment has been updated according to discordjs/discord.js#9185 (comment)
|
any update? |
I think the issue in discordjs is actually fixed now so you can just update it using |
I changed code like this and used |
I was fixed this problem. client.config = config;
client.player = new DisTube(client, {
leaveOnStop: config.opt.voiceConfig.leaveOnStop,
leaveOnFinish: config.opt.voiceConfig.leaveOnFinish,
leaveOnEmpty: config.opt.voiceConfig.leaveOnEmpty.status,
emitNewSongOnly: true,
emitAddSongWhenCreatingQueue: false,
emitAddListWhenCreatingQueue: false,
plugins: [
new SpotifyPlugin(),
new SoundCloudPlugin(),
new YtDlpPlugin(),
new DeezerPlugin(),
],
}); However, this change is for my program. So, it may not be a good change for programs in this repository. |
After running |
run this command
|
thx it worked |
The bot stops playing after around 1 minute of playback... No error in the console.
Any idea what could be causing this?
The text was updated successfully, but these errors were encountered: