matrix-webhook/matrix_webhook/formatters/slack.py

6 lines
175 B
Python
Raw Permalink Normal View History

2021-11-09 01:41:44 -05:00
def formatter(data, headers):
""" format a message sent with slack api endpoints"""
text = data["attachments"][0]["text"]
data["body"] = f"{text}"
return data