From a50b0b07c8a725a21b3ba698be5b70c108608baa Mon Sep 17 00:00:00 2001
From: Someone <someone@somenet.org>
Date: Mon, 10 Jan 2022 17:27:25 +0100
Subject: [PATCH] modules/CommandCourseIsMeh.py

---
 modules/CommandCourseIsMeh.py | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/modules/CommandCourseIsMeh.py b/modules/CommandCourseIsMeh.py
index 47f8685..c4963a4 100644
--- a/modules/CommandCourseIsMeh.py
+++ b/modules/CommandCourseIsMeh.py
@@ -18,7 +18,7 @@ class CommandCourseIsMeh(AbstractCommand):
     CONFIG = {"display_name": "somebot-command", "auto_complete": True,
               "auto_complete_hint": "[<reason>]",
              }
-    CONFIG["auto_complete_desc"] = CONFIG["description"] = "Use in a course channel. Increments the 'course is meh atm' counter. The optional reason is sent to fsinf to look into."
+    CONFIG["auto_complete_desc"] = CONFIG["description"] = AbstractCommand.ICON_DM+"Use in a course channel. Increments the 'course is meh atm' counter. The optional reason is sent to fsinf to look into."
 
 
     def __init__(self, team_id, datadir):
@@ -34,11 +34,11 @@ class CommandCourseIsMeh(AbstractCommand):
         pprint.pprint(c)
 
         if c["name"] in ["town-square", "off-topic"] or c["display_name"][0] == "=" or c["type"] != "O":
-            request.cmd_respond_text_temp("``/"+self.TRIGGER+"`` failed: Command must be used in a course channel.")
+            request.respond_cmd_err("``/"+self.TRIGGER+"`` must be used in a course channel.")
             return
 
         if len(msg_text) > 5000:
-            request.cmd_respond_text_temp("``/"+self.TRIGGER+"`` failed: reason-text must be smaller than 5000 characters :(\nYour text is: "+str(len(msg_text[1]))+" characters long.")
+            request.respond_cmd_err("``/"+self.TRIGGER+"`` failed: reason-text must be smaller than 5000 characters :(\nYour text is: "+str(len(msg_text[1]))+" characters long.")
             return
 
         # do actual action
@@ -46,8 +46,7 @@ class CommandCourseIsMeh(AbstractCommand):
         if len(msg_text) > 0:
             self.bot.api.create_post("cmr1s9d6678e7y94iw3jgwte3c", "``AUTODELETE-DAY`` ``/"+self.TRIGGER+"`` used by ``@"+data["user_name"]+"`` in ``"+data["team_domain"]+"::"+data["channel_name"]+"``\n```\n"+data["text"].strip()+"\n```")
 
-        #self.bot.debug_chan("``/"+self.TRIGGER+" "+data["text"].strip()+"`` used by ``@"+data["user_name"]+"`` in ``"+data["team_domain"]+"::"+data["channel_name"]+"``")
-        request.cmd_respond_text_temp("### ``Done.`` :)")
+        request.respond_cmd_temp("## :white_check_mark: Success! :)")
 
 
     def on_shutdown(self):
-- 
2.43.0