Skip to content

Commit

Permalink
Update utilitybot.py
Browse files Browse the repository at this point in the history
Signed-off-by: Little Monkey <[email protected]>
  • Loading branch information
PlaceReporter99 authored Apr 16, 2024
1 parent e9c1705 commit 2d46e3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utilitybot.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,11 +312,11 @@ def msg(event):
if event.user_id == 540406:
try:
output = subprocess.getoutput(event.content[6:])
r.send(output)
r.send(r.buildReply(event.message_id, '\n' + indent(output)))
except:
r.send("An error occured while executing the command.")
r.send(r.buildReply(event.message_id, "An error occured while executing the command."))
else:
r.send("You don't have permission, sorry!")
r.send(r.buildReply(event.message_id, "You don't have permission, sorry!"))
return msg


Expand Down

0 comments on commit 2d46e3f

Please sign in to comment.