jagrosh / MusicBot

🎶 A Discord music bot that's easy to set up and run yourself!
https://jmusicbot.com
Apache License 2.0
5.23k stars 2.51k forks source link

[Feature Request] -clean command to clean up channel #309

Open SachaNevsky opened 4 years ago

SachaNevsky commented 4 years ago

Whenever I use this bot, I end up having a whole channel spammed with -play requests, to clean up I have to go and manually delete each message.

Adding a -clean command to clean up the channel, similar to Rhythm Bot !clean command. This command would delete all messages related to the bot including -play, the "Now playing" and any other commands.

How this feature would be used:

  1. Someone requests a song via -play <URL>
  2. Someone runs the -clean command to delete all the messages made
CutestNekoAqua commented 3 years ago

I think it could be better implemented with an "auto-clean" option that automatically deletes messages after some time. And isn't this while a music channel / bot channel exists normally?

LcorpOfficial commented 2 years ago

Sorry to resurrect this, but I'd rather add to this than create a duplicate issue. I and others that use my bot agree that automatically deleting (only) things posted by the bot (nowplaying requests & such) and requests would just plain make sense vs cleaning the whole channel, as an admin could set a welcome banner or pinned messages. the channel would then stay clean. Hydra's behavior is a good example of this, and Jmusicbot already does remove it's response to a -play request if the request message is deleted.

perhaps a 5 sec delay before removing requests/now playing, and the queue menu would delete after removing it's reactions. as for quality of life this is what dragged me to hydra vs others and if it's available with this implementation this bot would be perfect in my eyes. thanks for your time!

MichailiK commented 2 years ago

an admin could set a welcome banner or pinned messages

This is already a Discord feature and is called a "channel topic"

ALocked1 commented 2 years ago

To add to the above, don't bot channels exist for the purpose of not having bot commands and responses interrupting things like an active conversation?

LcorpOfficial commented 2 years ago

to respond to @MichailiK, the channel topic is currently playing track, and yes @ALocked1 bot channels do exist for that but wouldn't it be much cleaner and more polished of an experience if this was at least an option? just my opinion of course. Instead of an infinitely scrolling wall of requests it would be nice to come to the channel to see a simple banner to welcome users to see. you could argue to just disable message history (which I do currently) but with that discord unfortunately doesn't retain pinned messages with that enabled.

MichailiK commented 2 years ago

the channel topic is currently playing track

it prepends to the topic, not overwrite. also can be disabled by denying manage channels

LcorpOfficial commented 2 years ago

it prepends to the topic, not overwrite. also can be disabled by denying manage channels

Nice to know it prepends, but is still not really doing anything to prevent clutter other than admins just hiding history of the channel.

MichailiK commented 2 years ago

have you seen any other bot channel of any server ever lmao

LcorpOfficial commented 2 years ago

of course I have, but is it absurd to look for better than that for an already very polished and well working bot? the functionality is already there if you manually delete your request. I'm just throwing my suggestion in for feedback.

it IS one of the main reasons I chose Hydra over Rythm or Groovy, after all.