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 7, 2024
1 parent c72d09f commit 2dc1782
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 @@ -275,7 +275,7 @@ def send_r():
r.send(r.buildReply(event.message_id, "Request took too long."))

elif event.content[:6] == "paste ":
string = html.unescape(event.content[5:]).replace("<br>","\n")
string = html.unescape(event.content[6:]).replace("<br>","\n")
req = requests.post("https://pastebin.com/api/api_post.php", data={"api_dev_key": os.environ["PASTEBIN_API_KEY"], "api_option": "paste", "api_paste_code": string, "api_paste_format": "python", "api_paste_private": 0}, timeout=15)
r.send(r.buildReply(event.message_id, req.text))
except ConnectionError:
Expand Down

0 comments on commit 2dc1782

Please sign in to comment.