Cog-Creators / Red-DiscordBot

A multi-function Discord bot
https://docs.discord.red
GNU General Public License v3.0
4.82k stars 2.3k forks source link

Future Audio Work #2940

Closed Drapersniper closed 3 years ago

Drapersniper commented 5 years ago

This issue is to gather features to be suggested for or worked on for Audio this supersedes and replaces #2494 due to the changes added by #2904

Open Issues:

TODO:

Requests:

Next Todo

In Edge

Done

What about sfx?

Want to suggest something?

aikaterna commented 3 years ago

Please keep arguments off this topic. Thanks.

Ryonez commented 3 years ago

Given the size of queues and potential risk from it I will not remove the cooldown here unless there's a lot of push back. If there is then I'm removing the 3 scopes and making playlist only creatable by bot owners

Could you please go over the potential risks? We could also have it so the bot owner gets to bypass the cooldown with a prompt maybe.

Edit: Response in Discord:

in short, your bot can get ddosed and/or you could possibly corrupt your playlist files

aikaterna commented 3 years ago

I have already commented on this in support in the main server.

Mathizsias commented 3 years ago

Songs when played with !local start are not pre-shuffled and always appear to start with the same song from the folder. Even though the bot is configured to !shuffle. The same !shuffle works fine for !play.

fixator10 commented 3 years ago

There is some probability that lavalink WS shutdown happens indefinitely, unless SIGKILL happens.

Approximate reproduce steps:

1. Run Red with audio with some usage for some time (probably let it play on some servers)
2. Run `await bot.shutdown(restart=True)`
3. [V3/edge]: Red will stop on `[INFO] red.Audio.WS.LLServer: Shutdown Lavalink WS.`
4. ^ that will continue indefinitely until SIGKILL is given:
   [2021-04-04 00:39:53] [INFO] red.Audio.WS.LLServer: Shutdown Lavalink WS.
   [2021-04-04 00:40:44] [INFO] red.main: Signals.SIGTERM received. Quitting...
   [2021-04-04 00:40:44] [INFO] red.main: Shutting down with exit code: ExitCodes.SHUTDOWN
   [2021-04-04 00:40:44] [INFO] red.main: Please wait, cleaning up a bit more
   Apr 04 04:40:54 systemd[1]: kurisuv3.service: State 'stop-sigterm' timed out. Killing.
   Apr 04 04:40:54 systemd[1]: kurisuv3.service: Killing process 7935 (python3.8) with signal SIGKILL.
   Apr 04 04:40:54 systemd[1]: kurisuv3.service: Main process exited, code=killed, status=9/KILL
   Apr 04 04:40:54 systemd[1]: kurisuv3.service: Failed with result 'timeout'.
Drapersniper commented 3 years ago

There is some probability that lavalink WS shutdown happens indefinitely, unless SIGKILL happens.

Approximate reproduce steps:

1. Run Red with audio with some usage for some time (probably let it play on some servers)
2. Run `await bot.shutdown(restart=True)`
3. [V3/edge]: Red will stop on `[INFO] red.Audio.WS.LLServer: Shutdown Lavalink WS.`
4. ^ that will continue indefinitely until SIGKILL is given:
   [2021-04-04 00:39:53] [INFO] red.Audio.WS.LLServer: Shutdown Lavalink WS.
   [2021-04-04 00:40:44] [INFO] red.main: Signals.SIGTERM received. Quitting...
   [2021-04-04 00:40:44] [INFO] red.main: Shutting down with exit code: ExitCodes.SHUTDOWN
   [2021-04-04 00:40:44] [INFO] red.main: Please wait, cleaning up a bit more
   Apr 04 04:40:54 systemd[1]: kurisuv3.service: State 'stop-sigterm' timed out. Killing.
   Apr 04 04:40:54 systemd[1]: kurisuv3.service: Killing process 7935 (python3.8) with signal SIGKILL.
   Apr 04 04:40:54 systemd[1]: kurisuv3.service: Main process exited, code=killed, status=9/KILL
   Apr 04 04:40:54 systemd[1]: kurisuv3.service: Failed with result 'timeout'.

I meant here https://github.com/Cog-Creators/Red-DiscordBot/pull/4565 Fixator, but its fine. i just tested edge and no longer reproducing if the issue persist after the latest update give me a shout on the PR.

aikaterna commented 3 years ago

Just adding a link back to https://github.com/Cog-Creators/Red-DiscordBot/issues/3492 here as I saw it wasn't linked. I ran into this myself today where I missed the loading message where audio was loading in Spotify tracks.

Technetium1 commented 3 years ago

It would be nice to be able to delete large amounts of tracks from the playlist. For example 40-50,52 or 40-50|52. Might be better to use the bar to keep format with the current request for playing multiple tracks, but it feels most natural to use a comma for both.

Drapersniper commented 3 years ago

Note to self: You fucking moron yes its jacks fault but you should make better usage on destination in the arg parse logic ... fix yo shit.

ltzmax commented 3 years ago

Add a possible way to toggle notify to a channel, example [p]audioset notify #testing.

aikaterna commented 3 years ago

Add a possible way to toggle notify to a channel, example [p]audioset notify #testing.

This is already listed in the main description of this topic as "setting a lock on the audio set notify channel via this method".

Drapersniper commented 3 years ago

Closing, this one is becoming ungodly; if i missed anything from #5075 feel free to bring it over there.