Update Ultroid v0.8
--------- Co-authored-by: Amit Sharma <48654350+buddhhu@users.noreply.github.com> Co-authored-by: Aditya <me@xditya.me> Co-authored-by: Dark <darkbeamer.official@gmail.com> Co-authored-by: buddhhu <amitsharma123234@gmail.com> Co-authored-by: Kaif <88398455+kaif-00z@users.noreply.github.com> Co-authored-by: 1Danish-00 <danish@ultroid.tech> Co-authored-by: TechiError <techierror@gmail.com> Co-authored-by: Dark <59723913+DarkBeamerYT@users.noreply.github.com>
This commit is contained in:
@@ -20,13 +20,13 @@ from pyUltroid.dB.nsfw_db import profan_chat, rem_profan
|
||||
from . import get_string, ultroid_cmd
|
||||
|
||||
|
||||
@ultroid_cmd(pattern="addprofanity$", admins_only=True)
|
||||
@ultroid_cmd(pattern="(add|rem)profanity$", admins_only=True)
|
||||
async def addp(e):
|
||||
profan_chat(e.chat_id, "mute")
|
||||
await e.eor(get_string("prof_1"), time=10)
|
||||
|
||||
|
||||
@ultroid_cmd(pattern="remprofanity", admins_only=True)
|
||||
async def remp(e):
|
||||
cas = e.pattern_match.group(1)
|
||||
add = cas == "add"
|
||||
if add:
|
||||
profan_chat(e.chat_id, "mute")
|
||||
await e.eor(get_string("prof_1"), time=10)
|
||||
return
|
||||
rem_profan(e.chat_id)
|
||||
await e.eor(get_string("prof_2"), time=10)
|
||||
|
||||
Reference in New Issue
Block a user