No description
Find a file
2023-07-13 15:07:32 +03:00
.github/workflows fixed buildx issue with docker driver 2023-07-13 11:49:28 +03:00
prisma initial commit 2023-07-09 23:53:49 +03:00
src fixed regex reading 2023-07-13 15:07:32 +03:00
.db.env.example Fix name .db.env.example 2023-07-13 08:52:29 +00:00
.dockerignore initial commit 2023-07-09 23:53:49 +03:00
.env.example migrated config to .env file 2023-07-10 16:34:35 +03:00
.eslintrc.js initial commit 2023-07-09 23:53:49 +03:00
.gitignore initial commit 2023-07-09 23:53:49 +03:00
.prettierrc initial commit 2023-07-09 23:53:49 +03:00
docker-compose.yml Update docker-compose.yml 2023-07-13 11:44:11 +03:00
Dockerfile fixed build command 2023-07-13 12:09:18 +03:00
entrypoint.sh arm and typo fix 2023-07-13 14:11:06 +03:00
package.json arm and typo fix 2023-07-13 14:11:06 +03:00
pnpm-lock.yaml migrated config to .env file 2023-07-10 16:34:35 +03:00
README.md migrated config to .env file 2023-07-10 16:34:35 +03:00
tsconfig.json initial commit 2023-07-09 23:53:49 +03:00

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.

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 Node >= 18

Next, install packages, generate Prisma package for the project and build it:

npm i # alias for npm install
npm run generate
npm run build

Migrate database and run:

npm run migrate
npm start