Add more reacts to MRF

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2022-05-30 15:36:54 +02:00
parent 6a3a0270a2
commit bbfcb44083
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD

View file

@ -14,7 +14,7 @@ def filter(%{"type" => "EmojiReact"} = object) do
react = object["content"]
# TODO: make this pull from config
if react in ["👍", "👎", "❤️", "😆", "😮", "😢", "😩", "😭", "🔥", ""] do
if react in ["👍", "👎", "❤️", "🔥", "😆", "😮", "😭", "😢", "😩", "🤮", "😡", ""] do
Logger.info("MRF.ChangeReactstoLikes: Changing #{inspect(react)} to a Like")
object =