This Python script allows sign up to a Gitea instance to all local users of a Mastodon server.
giteacat.py | ||
README.md | ||
requirements.txt | ||
setup.py |
giteacat
This Python script allows sign in to a Gitea instance to all local users of a Mastodon server.
Dependencies
- Python 3
- Gitea 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
-
Clone this repo: git clone https://git.mastodont.cat/spla/giteacat.git
-
cd into your and create the Python Virtual Environment:
python3.x -m venv .
-
Activate the Python Virtual Environment:
source bin/activate
-
Run
pip install -r requirements.txt
to install needed libraries. -
Run
python setup.py
to setup the Mastodon bot account, bot's access tokens, gitea hostname and gitea access token (admin account). -
Use your favourite scheduling method to set
python giteacat.py
to run every minute.