From 6e16ea6c1dca91f1abd3b252ccf829bca35739c3 Mon Sep 17 00:00:00 2001 From: ufoptg <80729525+ufoptg@users.noreply.github.com> Date: Tue, 13 Jul 2021 18:43:05 +0800 Subject: [PATCH] Update gban.py --- DaisyX/modules/gban.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DaisyX/modules/gban.py b/DaisyX/modules/gban.py index 4abe0219..cc009e01 100644 --- a/DaisyX/modules/gban.py +++ b/DaisyX/modules/gban.py @@ -170,9 +170,9 @@ async def _(event): @tbot.on(events.ChatAction()) async def join_ban(event): - if event.chat_id == int(sed): + if event.chat_id == sed: return - if event.chat_id == int(sed): + if event.chat_id == sed: return user = event.user_id chats = gbanned.find({}) @@ -196,9 +196,9 @@ async def join_ban(event): @tbot.on(events.NewMessage(pattern=None)) async def type_ban(event): - if event.chat_id == int(sed): + if event.chat_id == sed: return - if event.chat_id == int(sed): + if event.chat_id == sed: return chats = gbanned.find({}) for c in chats: