A python-based bot for Mastodon
Below are the steps required to get started in working on Postodon
- Python
- Docker
Minimum required version: 3.12
- Install Homebrew (if you haven’t already):
Open the Terminal and run the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Install Python:
brew install python
- Download Python: a. Go to the official Python website. b. Download the latest Python installer (e.g., python-3.x.x.exe).
- Install Python a. Open the downloaded installer from your Downloads folder b. Check the box "Add Python to PATH" c. Click Install Now
Linux: Most distributions come with Python preinstalled.
Install Docker Desktop from the official website
Ubuntu, Debian, Fedora, CentOS
Set up your .env
file with the following values:
flask_secret_key="MYSUPERSECRETKEY"
domain="127.0.0.1"
port=5001
env=debug
interval=86400
python src/app.py
-
docker build -t postodon:latest .
-
docker run -p 5001:5001 --env-file ./.env postodon:latest
This project is still in a very basic alpha phase. There will be pitfalls and errors and things will break.
This is the basic colour palette being used at the moment. Anyone is free to come up with a better one. Eventually I'll make it possible to specify the colour palette via the .env file.