Skip to content

Commit

Permalink
fix trigger call
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfcabral committed Apr 3, 2024
1 parent 1358e57 commit 2926b32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion botgen/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ async def trigger(self, event: str, bot_worker: BotWorker, message: BotMessage):
""" """
if event in self._events:
for ev in self._events[event]:
handler_result = await ev(bot_worker, bot_worker, message)
handler_result = await ev(bot_worker, message)

if handler_result:
break
Expand Down

0 comments on commit 2926b32

Please sign in to comment.