diff --git a/misskaty/plugins/dev.py b/misskaty/plugins/dev.py index 3098f612..f38a2205 100644 --- a/misskaty/plugins/dev.py +++ b/misskaty/plugins/dev.py @@ -314,7 +314,7 @@ async def update_restart(self: Client, ctx: Message, strings) -> "Message": async def updtebot(client, update, users, chats): if isinstance(update, UpdateBotStopped): user = users[update.user_id] - if update.stopped and await db.is_user_exist(user.id):: + if update.stopped and await db.is_user_exist(user.id): await db.delete_user(user.id) await client.send_msg(LOG_CHANNEL, f"{user.first_name} ({user.id}) " f"{'BLOCKED' if update.stopped else 'UNBLOCKED'} the bot at " f"{datetime.fromtimestamp(update.date)}")