Bug fixes V0.0.5

Co-authored-by: Aditya <me@xditya.me>
Co-authored-by: Danish <danish@ultroid.tech>
Co-authored-by: buddhhu <buddhuu@users.noreply.github.com>
Co-authored-by: sppidy <sppidy@users.noreply.github.com>
Co-authored-by: Arnab Paryali <Arnabxd@users.noreply.github.com>
Co-authored-by: divkix <divkix@users.noreply.github.com>
Co-authored-by: hellboi_atul <hellboi-atul@users.noreply.github.com>
Co-authored-by: Programming Error <error@notavailable.live>
Co-authored-by: New-dev0 <New-dev0@notavailable.live>
This commit is contained in:
Danish
2021-04-15 18:37:02 +05:30
committed by GitHub
parent 4e8b0543ce
commit bef7479be0
42 changed files with 473 additions and 251 deletions

View File

@@ -30,18 +30,15 @@ from . import *
pattern="addsudo ?(.*)",
)
async def _(ult):
if Var.BOT_MODE == True:
if Var.BOT_MODE:
try:
if ult.sender_id != Var.OWNER_ID:
return await eor(
ult,
"You are sudo user, You cant add other sudo user.",
)
return await eod(ult, "`Sudo users can't add new sudos!`", time=10)
except BaseException:
pass
else:
if ult.sender_id != ultroid_bot.uid:
return await eor(ult, "You are sudo user, You cant add other sudo user.")
return await eod(ult, "`Sudo users can't add new sudos!`", time=10)
ok = await eor(ult, "`Updating SUDO Users List ...`")
if ult.reply_to_msg_id:
replied_to = await ult.get_reply_message()
@@ -60,7 +57,7 @@ async def _(ult):
f"**Added [{user.user.first_name}](tg://user?id={id}) as SUDO User**",
)
else:
return await ok.edit("`SEEMS LIKE THIS FUNCTION CHOOSE TO BROKE ITSELF`")
return await ok.edit("`SEEMS LIKE THIS FUNCTION CHOOSE TO BREAK ITSELF`")
args = ult.pattern_match.group(1).strip()
@@ -115,7 +112,7 @@ async def _(ult):
pattern="delsudo ?(.*)",
)
async def _(ult):
if Var.BOT_MODE == True:
if Var.BOT_MODE:
try:
if ult.sender_id != Var.OWNER_ID:
return await eor(