From 2d46e3f46c5439107a500880f8b55ece649c96cf Mon Sep 17 00:00:00 2001 From: Little Monkey <106759534+PlaceReporter99@users.noreply.github.com> Date: Tue, 16 Apr 2024 19:22:07 +0100 Subject: [PATCH] Update utilitybot.py Signed-off-by: Little Monkey <106759534+PlaceReporter99@users.noreply.github.com> --- utilitybot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utilitybot.py b/utilitybot.py index 6637110..1911e38 100644 --- a/utilitybot.py +++ b/utilitybot.py @@ -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