Hubs-Foundation / hubs-discord-bot

A Discord bot that helps you use Hubs together with people in Discord.
Mozilla Public License 2.0
50 stars 31 forks source link

Enhancement: Allow configuration of bot messages #83

Open misslivirose opened 5 years ago

misslivirose commented 5 years ago

Issue: In channels with a lot of traffic, the bot notifications end up overpowering the channel content. In servers with large populations that have multiple Discord rooms (such as a conference Discord server) this means that the noise:useful information ratio is skewed.

It could be a channel or server-wide setting to suppress certain types of notifications, such as 'join/leave' messages. In cases where the presence indicator in the channel name is sufficient, this could reduce the overall message volume in a channel.

As a general design approach, I think giving individual communities more control over how the bridging works for their use case would be ideal in many cases.

I don't think that this needs to change the default, existing behavior.

gfodor commented 5 years ago

ah interesting -- iirc we actually have a mechanic in place in hubs already that filters join/leave messages based upon # of users in the room because of the expected frequency, but that heuristic doesn't end up bubbling to the discord bot. also since it's a ccu threshold, it may not suffice for the case where you have low volume but high turnover rooms

misslivirose commented 4 years ago

Copied from an issue originally filed in Hubs (https://github.com/mozilla/hubs/issues/2731):

Is your feature request related to a problem? Please describe. I understand that the chat bridge is core functionality of the bot, but bridging all messages in a room feels a bit invasive for user privacy in some cases.

Describe the solution you'd like I'd only like images, join/leave and stats to be posted in discord. An option to turn off the chat bridge, while keeping only the join/leave announcements and the stat announcement. Also being able to only allow image posts would be ideal in my case. Basically some options for the bot.

Describe alternatives you've considered I've checked the docs but cant seem to find anything on this. I've tried to restrict certain permissions but it behaves basically the same.

I ended up just commenting out the sendmessage stuff in the habitat package for hubs-discord-bot, but would be nice to manually configure this somewhere.