Refactor rules acknowledgment logic and update role assignment behavior
- Removed the `on_presentation_message` function to streamline role assignment processes. - Updated the `assign_rules_arrival_on_join` function to clarify its purpose, focusing solely on assigning the arrival role upon member join. - Adjusted success message generation for role validation to enhance clarity and user experience. - Modified configuration settings and web templates to reflect the updated role assignment behavior, ensuring accurate user guidance.
This commit is contained in:
@@ -33,7 +33,7 @@ from discordbot.moderation import (
|
||||
moderation_slash_say,
|
||||
)
|
||||
from discordbot.welcome import sendWelcomeMessage, sendLeaveMessage, updateInviteCache
|
||||
from discordbot.rules_ack import assign_rules_arrival_on_join, register_persistent_rules_view, on_presentation_message
|
||||
from discordbot.rules_ack import assign_rules_arrival_on_join, register_persistent_rules_view
|
||||
from discordbot.patreon import checkPatreonPosts
|
||||
from discordbot.youtube import checkYouTubeVideos
|
||||
from discordbot.auto_rooms import on_voice_state_update_auto_rooms, on_raw_reaction_add_auto_rooms, on_message_auto_rooms, cleanup_orphaned_auto_rooms
|
||||
@@ -190,7 +190,6 @@ async def on_message(message: Message):
|
||||
if message.author == bot.user:
|
||||
return
|
||||
|
||||
await on_presentation_message(bot, message)
|
||||
# Gestion des messages dans les auto rooms (avant le check des commandes !)
|
||||
await on_message_auto_rooms(bot, message)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user