gitcat

This Python script allows sign up to a Forgejo instance to all local users of a Mastodon server.

Dependencies

  • Python 3
  • Forgejo running server with admin access account
  • Mastodon's bot account

Usage

From the Mastodon's server account where this bot is running:

@bot_username registre

Installation

  1. Clone this repo: git clone https://codeberg.org/spla/gitcat.git

  2. cd into your and create the Python Virtual Environment: python3.x -m venv .

  3. Activate the Python Virtual Environment: source bin/activate

  4. Run pip install -r requirements.txt to install needed libraries.

  5. Run python gitcat.py to setup the Mastodon bot account at first run.

  6. Add a systemd unit to keep running python gitcat.py

10.1.2024 New feature Real time response thanks to Mastodon's Streaming API
9.4.2024 Added new Forgejo's API method: deactivate account. Added checking Mastodon's users activity.
3.5.2024 Added new columns to users database: deactivated (boolean) and deactivated_at (date).
15.5.2024 Re activate users with enought activity.