modified: modules/CommandLernrauminfo.py
authorSomeone <someone@somenet.org>
Thu, 6 Jan 2022 21:18:14 +0000 (22:18 +0100)
committerSomeone <someone@somenet.org>
Thu, 6 Jan 2022 21:18:14 +0000 (22:18 +0100)
modules/CommandLernrauminfo.py

index 2157a738f9565e501c340b4d5cfa2cc28f440c8d..65b01bfd897de609577b8524dd4371f4994cba4a 100644 (file)
@@ -28,10 +28,10 @@ class CommandLernrauminfo(AbstractCommand):
                 }]
             }]
 
-        request.respond(200, {"response_type":"in_channel", "text":msg, "attachments":att})
+        request.respond_cmd_chan(msg, att=att)
 
 
     def on_POST_interactive(self, request, data):
         if data["context"]["action"] == "click":
             self.bot.api.add_user_to_channel("3qu3dyzbupgm9kodrqaijwntgc", data["user_id"])
-            request.respond(200, {"ephemeral_text": "Du solltest gejoint worden sein: https://mattermost.fsinf.at/fsinf/channels/raeume"})
+            request.respond_interactive_temp("# :white_check_mark: Du solltest gejoint worden sein nach:\n# https://mattermost.fsinf.at/fsinf/channels/raeume")