Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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