This Python script allows sign up to a Forgejo instance to all local users of a Mastodon server.
Go to file
2024-01-10 12:36:09 +01:00
Forgejo.py POST request body with json format 2024-01-10 12:36:09 +01:00
gitcat.py POST request body with json format 2024-01-10 12:36:09 +01:00
LICENSE First release 2023-01-01 15:50:46 +01:00
README.md First release 2023-01-01 15:50:46 +01:00
requirements.txt First release 2023-01-01 15:50:46 +01:00
setup.py First release 2023-01-01 15:50:46 +01:00

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://git.mastodont.cat/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 setup.py to setup the Mastodon bot account and related bot's access tokens.

  6. Use your favourite scheduling method to set python gitcat.py to run every minute.