|
11 months ago | |
---|---|---|
config | 11 months ago | |
.dockerignore | 11 months ago | |
.gitignore | 1 year ago | |
Dockerfile | 11 months ago | |
LICENSE | 1 year ago | |
README.md | 11 months ago | |
bot.json | 11 months ago | |
docker-compose.yaml | 11 months ago | |
index.js | 11 months ago | |
package-lock.json | 11 months ago | |
package.json | 11 months ago |
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.
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/reportssetupMode
: The bot will run in setup mode and join every room, it is invited tosecrets.json
homeserverURL
: The URL of the matrix-instance to be usedmatrixSecret
: 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 usedmastodonSecret
: 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" )