Skip to content

Commit

Permalink
Fix regression in verification cog
Browse files Browse the repository at this point in the history
A stray `bot` was removed from the `on_message` listener, causing it to raise an exception rather than generate a `Context` object from incoming verification channel messages.
  • Loading branch information
sco1 committed Mar 21, 2020
1 parent 44b33d5 commit 3597d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/cogs/verification.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ async def on_message(self, message: Message) -> None:
ping_everyone=constants.Filter.ping_everyone,
)

ctx: Context = await self.get_context(message)
ctx: Context = await self.bot.get_context(message)
if ctx.command is not None and ctx.command.name == "accept":
return

Expand Down

0 comments on commit 3597d22

Please sign in to comment.