Add automatic role assignment on member join for rules acknowledgment

- Introduced a new function `assign_rules_arrival_on_join` to assign the arrival role to members upon joining, based on configuration settings.
- Updated the `on_member_join` event to call the new function, enhancing the user experience by providing immediate role assignment.
- Modified configuration options in the web application to allow enabling or disabling this feature.
- Updated the configurations template to reflect the new role assignment behavior, ensuring clarity for users.
This commit is contained in:
2026-05-04 13:31:11 +02:00
parent 8634f946a1
commit 4e6f8bec3a
4 changed files with 50 additions and 3 deletions
+1
View File
@@ -50,6 +50,7 @@ def updateConfiguration():
'auto_rooms_enable': 'auto_rooms_channel_id',
'twitch_commands_enable': 'twitch_channel',
'rules_ack_enable': 'rules_channel_id',
'rules_arrival_on_join_enable': 'rules_ack_section_in_form',
}
# Ne mettre à jour les rôles staff que si la liste a été rendue dans le formulaire.