fumieval / discord-vc-notification

Post a message when someone joins a voice channel
BSD 3-Clause "New" or "Revised" License
15 stars 8 forks source link

Add options to decrease bot spam #4

Open Thomasbomb opened 3 years ago

Thomasbomb commented 3 years ago
  1. Only notify when channel has X active members
  2. Add an option to only send Y messages per hour
fumieval commented 3 years ago

@Thomasbomb Can you elaborate on 1? Should it count the number of online guild members?

66Bunz commented 3 years ago

@fumieval I think that @Thomasbomb ment that only if the VC has more than X members the bot would send a notification

Thomasbomb commented 3 years ago

@66Bunz Yes, that is exactly what I meant. Sorry for being unclear

This is especially useful on a discord server where a single person may hop into VC to see if anyone else is on, then hop off quickly. There is no use notifying the entire server if only one person is in VC. I would set X=2 so the bot only notifies when 2 or more members are in voice chat

fumieval commented 3 years ago

This is especially useful on a discord server where a single person may hop into VC to see if anyone else is on

I'm not sure if choosing an arbitrary threshold helps... It will still send a notification if there are two idle participants.

Preventing notification for a quick exit makes sense. I introduced a 10 second delay; the bot will send a message once a user is in the voice channel for 10 seconds

66Bunz commented 3 years ago

You could add a per server setting, maybe the default could be set to 2 but every owner can change it to what he wants

fumieval commented 3 years ago

I've just deployed a new version, You can now specify vc-notification: General >1 to ignore the first user

Dhmee commented 3 years ago

This is especially useful on a discord server where a single person may hop into VC to see if anyone else is on

I'm not sure if choosing an arbitrary threshold helps... It will still send a notification if there are two idle participants.

Preventing notification for a quick exit makes sense. I introduced a 10 second delay; the bot will send a message once a user is in the voice channel for 10 seconds

i believe with this no need for 10 secs delay any more or maybe optional delay that will be perfect image

fumieval commented 3 years ago

i believe with this no need for 10 secs delay any more or maybe optional delay that will be perfect

It would send a notification when someone joins an empty channel then leaves immediately