Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Apr 1, 2023
1 parent ed003a0 commit a395ac8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deltachat_chatbot/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
cli = BotCli("chatbot", get_log_level())
cfg: dict = {}
quota_manager = QuotaManager(cli, {})
fail_count = 5
fail_count = 5 # pylint:disable=C0103


@cli.on_init
Expand Down Expand Up @@ -72,6 +72,7 @@ async def _member_added(event: AttrDict) -> None:

@cli.on(events.NewMessage(is_info=False, func=cli.is_not_known_command))
async def _filter_messages(event: AttrDict) -> None:
global fail_count # pylint:disable=C0103
msg = event.message_snapshot
chat = await msg.chat.get_basic_snapshot()
if not msg.text or not await _should_reply(msg, chat):
Expand Down

0 comments on commit a395ac8

Please sign in to comment.