fix: skip game redirect when topic drift already handled
Changed if to elif so detected_game redirect only fires when the topic_drift branch wasn't taken. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -443,8 +443,7 @@ class SentimentCog(commands.Cog):
|
||||
db_message_id, self._dirty_users,
|
||||
)
|
||||
|
||||
detected_game = finding.get("detected_game")
|
||||
if detected_game and game_channels and not dry_run:
|
||||
elif (detected_game := finding.get("detected_game")) and game_channels and not dry_run:
|
||||
await handle_channel_redirect(
|
||||
self.bot, user_ref_msg, detected_game, game_channels,
|
||||
db_message_id, self._redirect_cooldowns,
|
||||
|
||||
Reference in New Issue
Block a user