Bot to send notifications for new pending reports and accounts of a given Mastodon instance to matrix-rooms
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.
 
 
(ง ื▿ ื)ว ff21375c46
documantaion and cleanup
9 months ago
config documantaion and cleanup 9 months ago
.dockerignore dockerized bot, exported config to another file 9 months ago
.gitignore Implemented automatic notifications 9 months ago
Dockerfile dockerized bot, exported config to another file 9 months ago
LICENSE Initial commit 11 months ago
README.md documantaion and cleanup 9 months ago
bot.json fixing dem bugs 9 months ago
docker-compose.yaml dockerized bot, exported config to another file 9 months ago
index.js documantaion and cleanup 9 months ago
package-lock.json fixing dem bugs 9 months ago
package.json fixing dem bugs 9 months ago

README.md

Matrix-MastodonReportBot

This bot is able to send notifications for new pending reports and accounts on a given Mastodon-instance to one or multiple matrix-rooms.

It uses Node.js and can be easily deployed using docker.

Configuration

To use the bot, there need to be two Files config.json and secrets.json, which need to be located under the /config-subdirectory.

config.json

  • apiPollIntervall: Sets the time intervall, at which the bot checks the mastodon instance for new pending accounts/reports
  • setupMode: The bot will run in setup mode and join every room, it is invited to

secrets.json

  • homeserverURL: The URL of the matrix-instance to be used
  • matrixSecret: Secret of the matrix-account to be used, can be most easily optained using Riot (“Settings” → “Help & About” → “Access Token”)
  • mastodonURL: Root-URL of the Mastodon-instance to be used
  • mastodonSecret: Access token for the given Mastodon-instance, needs to have the admin:read:accounts and the admin:read:reports rights. Can be optained in the WebUI (“Settings” → “Development” → “New Application”, and after creating the access token: “Your access token” )