Skip to content

Commit

Permalink
Update Block.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Badhacker98 authored Oct 11, 2024
1 parent 983aa77 commit 877fc1c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions shizuchat/modules/Block.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from shizuchat.modules.helpers import mongo
from shizuchat.modules.helpers.mongo import db

@shizuchat.on_cmd(["start", "aistart"])
@shizuchat.on_cmd(["block"])
async def block_func(_, message: Message):
if db is None:
return await message.reply_text(
Expand Down Expand Up @@ -49,10 +49,8 @@ async def block_func(_, message: Message):
"Reply to a user's forwarded message to block him from using the bot"
)

@shizuchat.on_cmd(
filters.command("unblock") & filters.user(OWNER_ID)
)
async def unblock_func(_, message: Message):
@shizuchat.on_cmd(["unblock"])
async def unblock_func(_, message: Message):
if db is None:
return await message.reply_text(
"MONGO_DB_URI var not defined. Please define it first"
Expand Down

0 comments on commit 877fc1c

Please sign in to comment.