v0.2 11/10/2021

Co-authored-by: New-dev0 <New-dev0@users.noreply.github.com>
Co-authored-by: Amit Sharma <buddhhu@users.noreply.github.com>
Co-authored-by: TechiError <techierror@users.noreply.github.com>
Co-authored-by: Aditya <me@xditya.me>
Co-authored-by: Sonya Nikiforova <Sonniki@users.noreply.github.com>
Co-authored-by: M̲αραт <Marty2509@users.noreply.github.com>
Co-authored-by: Muhamad Risman Aziz <mrismanaziz@users.noreply.github.com>
Co-authored-by: Arnab Paryali <Arnabxd@users.noreply.github.com>
Co-authored-by: hellboi_atul <hellboi-atul@users.noreply.github.com>
Co-authored-by: sppidy <sppidy@users.noreply.github.com>
This commit is contained in:
1Danish-00
2021-10-11 00:27:23 +05:30
parent 8f28387fb3
commit 6f44b386aa
165 changed files with 5537 additions and 4155 deletions

View File

@@ -4,7 +4,6 @@
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
# PLease read the GNU Affero General Public License in
# <https://www.github.com/TeamUltroid/Ultroid/blob/main/LICENSE/>.
"""
✘ Commands Available
@@ -25,9 +24,9 @@
"""
from pyUltroid.functions.warn_db import *
from pyUltroid.dB.warn_db import add_warn, reset_warn, warns
from . import *
from . import eor, inline_mention, udB, ultroid_cmd
@ultroid_cmd(
@@ -172,10 +171,10 @@ async def warnset(e):
try:
number, action = int(ok.split()[0]), ok.split()[1]
except BaseException:
return await eor(e, "`Incorrect Format`", time=5)
return await eor(e, get_string("schdl_2"), time=5)
if ("ban" or "kick" or "mute") not in action:
return await eor(e, "`Only mute / ban / kick option suported`", time=5)
udB.set("SETWARN", f"{number} {action}")
await eor(e, f"Done Your Warn Count is now {number} and Action is {action}")
else:
await eor(e, "`Incorrect Format`", time=5)
await eor(e, get_string("schdl_2"), time=5)