Feature: Add messages by group
Lyrians opened this issue · 4 comments
My English is not very good, but I hope I can express myself correctly.
I wanted to offer a new feature for the plugin, and it is to send messages to specific groups, if the group is not specified, then the message will be global.
For example:
Messages:
global:
- "blabla"
- "blabla2"
- "blabla3"
vip:
- "only vip"
- "only vip2"
- "only vip3"
- Type: json
Definition: json_vip
Group: vip
If I understand that right, you want the following:
There is a list of message that everyone can see, but specific messages are only visible for different permissible groups.
Is that correct?
Si entiendo bien, quieres lo siguiente:
Hay una lista de mensajes que todo el mundo puede ver, pero los mensajes específicos solo son visibles para diferentes grupos permitidos.
¿Es eso correcto?
Yes!
I have started working on this and now there is a problem:
Grouping messages by permissible groups has a severe impact on the broadcasting algorithm. As of now, there is a list of messages, from which one is chosen and then broadcasted to everybody. By implementing your feature request I am not sure on how the broadcasting behavior should be changed.
If the messages are not chosen randomly, should I iterate through each permissible group individually - which would result in a large delay for other groups - or should the global group be broadcasted as usual with an extra message per permissible group?
Similar behavior would apply to randomly chosen messages. With each iteration, should a random message be chosen from one group or per group?