From 3a0659611e7e1de07299280d215da1fcc038b76b Mon Sep 17 00:00:00 2001 From: Someone Date: Mon, 10 Jan 2022 17:00:59 +0100 Subject: [PATCH] modules/CommandBeratungsinfo.py --- modules/CommandBeratungsinfo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/CommandBeratungsinfo.py b/modules/CommandBeratungsinfo.py index b731ed6..0c7fed5 100644 --- a/modules/CommandBeratungsinfo.py +++ b/modules/CommandBeratungsinfo.py @@ -12,7 +12,7 @@ class CommandBeratungsinfo(AbstractCommand): CONFIG = {"display_name": "somebot-command", "auto_complete": True, "auto_complete_hint": "", } - USEINFO = CONFIG["auto_complete_desc"] = CONFIG["description"] = "Where to get help." + USEINFO = CONFIG["auto_complete_desc"] = CONFIG["description"] = AbstractCommand.ICON_PUBLIC+"Where to get help." def on_POST(self, request, data): @@ -29,10 +29,10 @@ class CommandBeratungsinfo(AbstractCommand): }] }] - request.respond(200, {"response_type":"in_channel", "text":msg, "attachments":att}) + request.respond_interactive_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/beratung\n\nYou should have been joined into: https://mattermost.fsinf.at/fsinf/channels/beratung"}) + request.respond_interactive_temp("## :white_check_mark: Success! :)\n### Du solltest gejoint worden sein: https://mattermost.fsinf.at/fsinf/channels/beratung\n\nYou should have been joined into: https://mattermost.fsinf.at/fsinf/channels/beratung") -- 2.43.0