Go to file
Andriy Cherniy afaaf6f577 add subcribers count to debug 2024-01-05 23:45:49 +02:00
.dockerignore Rewrite in Go 2023-09-19 22:19:25 +03:00
.env.example Rewrite in Go 2023-09-19 22:19:25 +03:00
.gitignore fix docker compose 2024-01-05 19:29:23 +00:00
Dockerfile Rewrite in Go 2023-09-19 22:19:25 +03:00
README.md Rewrite in Go 2023-09-19 22:19:25 +03:00
docker-compose.yml fix docker compose 2024-01-05 19:29:23 +00:00
entrypoint.sh Fix permissions in entrypoint file 2023-09-19 23:09:13 +03:00
go.mod replace go-mastodon with own fork 2024-01-05 23:42:47 +02:00
go.sum replace go-mastodon with own fork 2024-01-05 23:42:47 +02:00
main.go add subcribers count to debug 2024-01-05 23:45:49 +02:00

README.md

UA-Bot

UA-Bot - Bot for Mastodon that reboosts message if mentioned.

Features

  • Moderation - Send to Matrix room before reblog
  • Reply or broken thread detection (not fully tested)
  • Block instances and nicknames by regex

Install

First, install Postgres (>= 14 will be fine, i guess).

Second, clone repo.

Copy .env.example to .env and edit with your data

Also create nicknames.txt and domains.txt (regex files):

  • nicknames.txt - block by username or display name
  • domains.txt - block by domain name

Tip: # in the beginning of the regex file means that this line will be ignored. You can use it as comment

Now you can install using Dockerimage or manually:

Docker

Build Dockerfile and run Also, mount domains.txt and nicknames.txt to the /app

Manually

Install Go >= 1.20

Next, build the project:

go build

Run:

./uabot