Skip to content

Commit

Permalink
Merge pull request #159 from crimsobot/poetry-python-version-update
Browse files Browse the repository at this point in the history
Update Python version in poetry to accomodate 3.10
  • Loading branch information
h-anjru authored Jul 23, 2024
2 parents 9c2aa31 + 2aa1fc6 commit 1c38018
Show file tree
Hide file tree
Showing 4 changed files with 1,335 additions and 1,088 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ crimsoBOT is a playful and somewhat poorly-coded Discord bot.
Installing
----------

- Python 3.7 or higher is required
- Python >=3.7.0, <3.11 is required.
- You'll need to have `poetry installed <https://python-poetry.org/docs/>`_.

.. code:: sh
Expand Down
2 changes: 1 addition & 1 deletion crimsobot/cogs/games.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async def madlibs(self, ctx: commands.Context) -> None:
# check message for author, channel, content
def check(message: discord.Message) -> bool:
banned = self.bot.is_banned(message.author)
has_prefix = message.content.startswith(prefix)
has_prefix = message.content.startswith(prefix) # noqa: B023
in_channel = message.channel == ctx.message.channel
return not banned and has_prefix and in_channel

Expand Down
Loading

0 comments on commit 1c38018

Please sign in to comment.