Skip to content
This repository was archived by the owner on Feb 12, 2025. It is now read-only.

Update gban.py #37

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions DaisyX/modules/gban.py
Original file line number Diff line number Diff line change
Expand Up @@ -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({})
Expand All @@ -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:
Expand Down