1.5 KiB
1.5 KiB
toota-palooza
Python program to fill a mastodon timeline with randomized toots.
Setting up a Dev environment
So you want to run this yourself, eh?
You need:
- A bot account on an instance. Go create one. Do not enable MFA on it.
- Python
Python prep
- Check out the code.
- cd to the repository.
- Build it and install it in your working environment.
python3 -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
- Assuming your current working directory is the root of this repository, install into your build environment with
pip install -e .
- Copy the
example.env
file to a file named.env
in the root of this repo. - Edit that
.env
file to contain all the secrets!
Initialise your Mastodon app
This is a one-time thing you do ever. First time you go to run the bot in a new environment where it hasn't run before.
- Find
toota-palooza/__init__.py
and edit it - Edit the lines to uncomment them and change any values you need to (like app name and server)
- Run it one time (e.g.,
python __init__.py
). It should just exit, creating the file. - Edit the file and comment the lines out again. You just do that once.
Running
Set get the toota-palooza
command into your path so you can invoke it. Run pip install -e .
Assuming everything is up to date, all your files initialised with correct values, you can just run toota-palooza --once
.
By default it will try to run as a daemon.