giteacat/README.md

31 líneas
895 B
Markdown
Original Vista normal Històric

2022-06-19 16:31:56 +02:00
# giteacat
This Python script allows sign in to a Gitea instance to all local users of a Mastodon server.
2022-06-16 15:34:36 +02:00
### Dependencies
- **Python 3**
2022-06-19 16:31:56 +02:00
- Gitea running server with admin access account
- Mastodon's bot account
## Usage
From the Mastodon account where this bot is running:
@bot_username registre
## Installation
1. Clone this repo: git clone https://git.mastodont.cat/spla/giteacat.git <target dir>
2. cd into your <target dir> 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, bot's access tokens, gitea hostname and gitea access token (admin account).
6 Use your favourite scheduling method to set `python viquicat.py` to run every minute.
2022-06-16 15:34:36 +02:00