Skip to content

Commit

Permalink
Update evaluators.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy1709 authored Jun 18, 2021
1 parent a56f3d2 commit fda3caf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions userbot/plugins/evaluators.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ async def _(event):
curruser = catuser.username or "catuserbot"
uid = os.geteuid()
if uid == 0:
cresult = f"`{curruser}:~#` `{cmd}`\n`{result}`"
cresult = f"```{curruser}:~#``` ```{cmd}```\n```{result}```"
else:
cresult = f"`{curruser}:~$` `{cmd}`\n`{result}`"
cresult = f"```{curruser}:~$``` ```{cmd}```\n```{result}```"
await edit_or_reply(
catevent,
text=cresult,
aslink=True,
linktext=f"**• Exec : **\n`{cmd}` \n\n**• Result : **\n",
linktext=f"**• Exec : **\n```{cmd}``` \n\n**• Result : **\n",
)
if BOTLOG:
await event.client.send_message(
Expand Down Expand Up @@ -87,12 +87,12 @@ async def _(event):
evaluation = stdout
else:
evaluation = "Success"
final_output = f"**• Eval : **\n`{cmd}` \n\n**• Result : **\n`{evaluation}` \n"
final_output = f"**• Eval : **\n```{cmd}``` \n\n**• Result : **\n```{evaluation}``` \n"
await edit_or_reply(
catevent,
text=final_output,
aslink=True,
linktext=f"**• Eval : **\n`{cmd}` \n\n**• Result : **\n",
linktext=f"**• Eval : **\n```{cmd}``` \n\n**• Result : **\n",
)
if BOTLOG:
await event.client.send_message(
Expand Down

0 comments on commit fda3caf

Please sign in to comment.