diff options
| author | 2024-03-24 21:06:48 +0000 | |
|---|---|---|
| committer | 2024-03-30 10:39:57 +0000 | |
| commit | aab6b9d129ac4d7ff85b7fb1dcd00ca715b5e450 (patch) | |
| tree | 84e7cfc437dcfc2ee24dfface9979e751c9a5e1e /bot/exts | |
| parent | Bump references to 3.11 up to Pytohn 3.12 (diff) | |
Lint repo with new ruff rules
Diffstat (limited to 'bot/exts')
| -rw-r--r-- | bot/exts/fun/battleship.py | 6 | ||||
| -rw-r--r-- | bot/exts/fun/connect_four.py | 6 | 
2 files changed, 4 insertions, 8 deletions
| diff --git a/bot/exts/fun/battleship.py b/bot/exts/fun/battleship.py index a209ff02..d9b2b58a 100644 --- a/bot/exts/fun/battleship.py +++ b/bot/exts/fun/battleship.py @@ -355,13 +355,11 @@ class Battleship(commands.Cog):              return True -        if ( +        return bool(              user.id == ctx.author.id              and str(reaction.emoji) == CROSS_EMOJI              and reaction.message.id == announcement.id -        ): -            return True -        return False +        )      def already_playing(self, player: discord.Member) -> bool:          """Check if someone is already in a game.""" diff --git a/bot/exts/fun/connect_four.py b/bot/exts/fun/connect_four.py index eec092d1..5e45c576 100644 --- a/bot/exts/fun/connect_four.py +++ b/bot/exts/fun/connect_four.py @@ -316,13 +316,11 @@ class ConnectFour(commands.Cog):              return True -        if ( +        return bool(              user.id == ctx.author.id              and str(reaction.emoji) == CROSS_EMOJI              and reaction.message.id == announcement.id -        ): -            return True -        return False +        )      def already_playing(self, player: discord.Member) -> bool:          """Check if someone is already in a game.""" | 
