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.

33 lines
874 B

7 years ago
  1. # twitterDM-to-matrix [![Go Report Card](https://goreportcard.com/badge/github.com/arnaucode/twitterDM-to-matrix)](https://goreportcard.com/report/github.com/arnaucode/twitterDM-to-matrix)
  2. bridge to send the received twitter Direct Messages (https://twitter.com) to a Matrix room (https://matrix.org), written in Go
  3. needs a twitterConfig.json file on the /build folder with the content:
  4. ```
  5. {
  6. "consumer_key": "xxxxxxxxxxxxxxxx",
  7. "consumer_secret": "xxxxxxxxxxxxxxxx",
  8. "access_token_key": "xxxxxxxxxxxxxxxx",
  9. "access_token_secret": "xxxxxxxxxxxxxxxx"
  10. }
  11. ```
  12. and a matrixConfig.json file on the /build folder with the content:
  13. ```
  14. {
  15. "room_id": "xxxxx",
  16. "user": "xxxxx",
  17. "password": "xxxxx",
  18. "server": "https://xxxxx.xxxxx"
  19. }
  20. ```
  21. to run it:
  22. - go to the /build folder
  23. - open terminal
  24. - execute the script with:
  25. ```
  26. ./twitterDM-to-matrix
  27. ```