How I use node red to send messages to mastadon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
localghost d8a7980805 Update 'README.md' 1 month ago
LICENSE Initial commit 1 month ago
README.md Update 'README.md' 1 month ago
RedNodeScreenshot.png Upload files to '' 1 month ago
flows.json added flows.json 1 month ago

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