From cff9f383dbc70b75e2f1c27c0dd93f350e0a795d Mon Sep 17 00:00:00 2001 From: Someone Date: Thu, 6 Jan 2022 23:06:47 +0100 Subject: [PATCH] core/MMBot.py --- core/MMBot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/MMBot.py b/core/MMBot.py index f85f76a..91eaa42 100644 --- a/core/MMBot.py +++ b/core/MMBot.py @@ -365,11 +365,12 @@ class MMBot(): # Use to send a failure to the user. Use only the first time during a request. Should retain input on clientside. def respond_cmd_err(self, message, props=None): - data = {"skip_slack_parsing":True, "response_type":"ephemeral", "text": "# :warning: Somewhing failed :boom::boom::boom::boom::boom: :(\n### "+message} + data = {"skip_slack_parsing":True, "response_type":"ephemeral", "text": "## :x: Failure! :(\n### "+message} if props: data.update({"props": props}) + # must be 2 separatecalls, as the message is ignored in a non-200. self.respond(400) self.respond(000, data) -- 2.43.0