diff --git a/cogs/sentiment/__init__.py b/cogs/sentiment/__init__.py index 13e5b34..48cb030 100644 --- a/cogs/sentiment/__init__.py +++ b/cogs/sentiment/__init__.py @@ -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,