Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
Signed-off-by: Little Monkey <[email protected]>
  • Loading branch information
PlaceReporter99 authored Oct 25, 2024
1 parent 0187df1 commit efe08e9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,7 @@ def msg(event):
elif event.content[:5] == "calc ":
string = html.unescape(event.content[5:])
def send_r():
r.send(
indent(
r.buildReply(
event.message_id,
"\n" + urlopen(f"https://safe-exec.onrender.com/{quote(string, safe='')}").read().decode("utf-8")
)))

r.send(indent(urlopen(f"https://safe-exec.onrender.com/{quote(string, safe='')}").read().decode("utf-8")))
p = multiprocessing.Process(target=send_r)
p.start()
p.join(15)
Expand Down

0 comments on commit efe08e9

Please sign in to comment.