رفع باگ
This commit is contained in:
+4
-1
@@ -75,6 +75,7 @@ async def start(message):
|
|||||||
"• اخراج کاربر\n"
|
"• اخراج کاربر\n"
|
||||||
"• سکوت کاربر\n"
|
"• سکوت کاربر\n"
|
||||||
"• لغو سکوت کاربر\n"
|
"• لغو سکوت کاربر\n"
|
||||||
|
"• ضد اسپم\n"
|
||||||
"• اخطار کاربر\n\n"
|
"• اخطار کاربر\n\n"
|
||||||
"💡 ربات را به گروه اضافه و ادمین کنید."
|
"💡 ربات را به گروه اضافه و ادمین کنید."
|
||||||
)
|
)
|
||||||
@@ -149,7 +150,7 @@ async def mute_by_reply(message):
|
|||||||
|
|
||||||
|
|
||||||
@bot.on_message(regex(r"^(رفع سکوت|unmute)$"))
|
@bot.on_message(regex(r"^(رفع سکوت|unmute)$"))
|
||||||
async def mute_by_reply(message):
|
async def unmute_by_reply(message):
|
||||||
if not await guard(message):
|
if not await guard(message):
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -250,6 +251,8 @@ async def anti_spam(message):
|
|||||||
user_id = message.author.id
|
user_id = message.author.id
|
||||||
current_time = time.time()
|
current_time = time.time()
|
||||||
signature = get_message_signature(message)
|
signature = get_message_signature(message)
|
||||||
|
if signature is None:
|
||||||
|
return
|
||||||
|
|
||||||
# ۲. ساخت دفترچه
|
# ۲. ساخت دفترچه
|
||||||
if chat_id not in spam_memory:
|
if chat_id not in spam_memory:
|
||||||
|
|||||||
Reference in New Issue
Block a user