diff --git a/matrix_webhook/formatters/slack.py b/matrix_webhook/formatters/slack.py new file mode 100644 index 0000000..e3210af --- /dev/null +++ b/matrix_webhook/formatters/slack.py @@ -0,0 +1,5 @@ +def formatter(data, headers): + """ format a message sent with slack api endpoints""" + text = data["attachments"][0]["text"] + data["body"] = f"{text}" + return data