feat: add slack formatter

This commit is contained in:
Alex Kelly 2021-11-09 01:41:44 -05:00
parent e0a407acd9
commit 778ebcdad9

View 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