From f136fdf2a2161813ee9fe495ad09ab5e7aa85f17 Mon Sep 17 00:00:00 2001
From: Someone <someone@somenet.org>
Date: Mon, 10 Jan 2022 16:36:41 +0100
Subject: [PATCH] modules/CommandSpoiler.py

---
 modules/CommandSpoiler.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/CommandSpoiler.py b/modules/CommandSpoiler.py
index fa4f23f..5d14071 100644
--- a/modules/CommandSpoiler.py
+++ b/modules/CommandSpoiler.py
@@ -11,7 +11,7 @@ class CommandSpoiler(AbstractCommand):
     CONFIG = {"display_name": "somebot-command", "auto_complete": True,
               "auto_complete_hint": "<spoiler-text>",
              }
-    USEINFO = CONFIG["auto_complete_desc"] = CONFIG["description"] = "Creates an empty post with spoiler-text. Use /spoiler-adv for advanced features (add to existing message/replace/remove)"
+    USEINFO = CONFIG["auto_complete_desc"] = CONFIG["description"] = AbstractCommand.ICON_PUBLIC+"Creates an empty post with spoiler-text. Use /spoiler-adv for advanced features (add to existing message/replace/remove)"
 
 
     def on_POST(self, request, data):
@@ -27,9 +27,9 @@ class CommandSpoiler(AbstractCommand):
                 }]
             }]
 
-        request.cmd_respond_text_chan("", {"attachments":att})
+        request.respond_cmd_chan("", att=att)
 
 
     def on_POST_interactive(self, request, data):
         if data["context"]["action"] == "show_spoiler":
-            request.respond(200, {"skip_slack_parsing":True, "ephemeral_text": data["context"]["spoiler"]})
+            request.respond_interactive_temp(data["context"]["spoiler"])
-- 
2.43.0