v0.0.9 18/07/2021
Co-authored-by: New-dev0 <New-dev0@users.noreply.github.com> Co-authored-by: Aditya <me@xditya.me> Co-authored-by: Amit Sharma <48654350+buddhhu@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>
This commit is contained in:
@@ -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 -
|
||||
|
||||
@@ -27,6 +26,7 @@ import io
|
||||
import sys
|
||||
import traceback
|
||||
from os import remove
|
||||
from pprint import pprint
|
||||
|
||||
from carbonnow import Carbon
|
||||
|
||||
@@ -43,7 +43,7 @@ async def _(e):
|
||||
p = (neo.read()).replace("\n\n", "")
|
||||
ok = Carbon(base_url="https://carbonara.vercel.app/api/cook", code=p)
|
||||
haa = await ok.save("neofetch")
|
||||
await e.client.send_file(e.chat_id, haa)
|
||||
await e.reply(file=haa)
|
||||
await xx.delete()
|
||||
remove("neofetch.jpg")
|
||||
remove("neo.txt")
|
||||
@@ -89,7 +89,7 @@ async def _(event):
|
||||
force_document=True,
|
||||
thumb="resources/extras/ultroid.jpg",
|
||||
allow_cache=False,
|
||||
caption=f"`{cmd}`",
|
||||
caption=f"`{cmd}`" if (len(cmd) + 2) < 1000 else None,
|
||||
reply_to=reply_to_id,
|
||||
)
|
||||
await xx.delete()
|
||||
@@ -97,7 +97,7 @@ async def _(event):
|
||||
await xx.edit(OUT)
|
||||
|
||||
|
||||
p = print # ignore: pylint
|
||||
p, pp = print, pprint # ignore: pylint
|
||||
|
||||
|
||||
@ultroid_cmd(
|
||||
@@ -155,7 +155,7 @@ async def _(event):
|
||||
ultd = final_output.replace("`", "").replace("*", "").replace("_", "")
|
||||
with io.BytesIO(str.encode(ultd)) as out_file:
|
||||
out_file.name = "eval.txt"
|
||||
await ultroid_bot.send_file(
|
||||
await event.client.send_file(
|
||||
event.chat_id,
|
||||
out_file,
|
||||
force_document=True,
|
||||
@@ -174,7 +174,7 @@ async def aexec(code, event):
|
||||
f"async def __aexec(e, client): "
|
||||
+ "\n message = event = e"
|
||||
+ "\n reply = await event.get_reply_message()"
|
||||
+ "\n chat = e.chat_id"
|
||||
+ "\n chat = (await event.get_chat()).id"
|
||||
+ "".join(f"\n {l}" for l in code.split("\n")),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user