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 Nov 6, 2024
1 parent 8fd94f6 commit 5ecf405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def msg(event):
elif event.content[:5] == "calc ":
string = html.unescape(event.content[5:])
def send_r():
r.send(indent(urlopen(f"https://safe-exec.onrender.com/{quote(string, safe='')}").read().decode("utf-8")))
r.send(indent(urlopen(f"https://safe-exec.onrender.com/calc/{quote(string, safe='')}").read().decode("utf-8")))
p = multiprocessing.Process(target=send_r)
p.start()
p.join(15)
Expand Down

0 comments on commit 5ecf405

Please sign in to comment.