feat: add slack formatter
This commit is contained in:
parent
e0a407acd9
commit
778ebcdad9
1 changed files with 5 additions and 0 deletions
5
matrix_webhook/formatters/slack.py
Normal file
5
matrix_webhook/formatters/slack.py
Normal file
|
@ -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
|
Loading…
Reference in a new issue