How I use node red to send messages to mastadon
Go to file
localghost d8a7980805 Update 'README.md' 2022-08-28 17:06:38 +00:00
LICENSE Initial commit 2022-08-28 16:41:33 +00:00
README.md Update 'README.md' 2022-08-28 17:06:38 +00:00
RedNodeScreenshot.png Upload files to '' 2022-08-28 16:58:55 +00:00
flows.json added flows.json 2022-08-28 11:47:42 -05:00

README.md

NodeRedSignalChatBot

How I use node red to send messages to mastadon

I use https://crossposter.masto.donte.com.br to bridge mastadon / twitter.


Requirements:

  1. local server (i use yunohost) running:
  2. synapse
  3. mautrix-signal
  4. node-red with matrix and mastadon integrations

Once you've setup the above, download the flows.json file and import it into node red. configure it to match your setup.

Screenshot

The blue box listens for all messages in a specific room. "switch" box checks if the message contains either @post or @mail, directs flows accordingly. the next two boxes do some processing to remove stuff like timestamps and other meta data. for mastadon I added a five minute wait counter, after that the message gets sent to mastadon.


To-Do:

  • finish mail flow to make it easier to send email.
  • Add a @kill trigger from the first swtich to cancel all pending messages
  • have bot echo back to the room the message its going to send, and ping room again ~10 seconds before sending.
  • see if its possible to get the resulting link from twitter / mastadon when posted