Fixed instructions
parent
0c3486be03
commit
08c88b35e2
19
README.md
19
README.md
|
@ -12,12 +12,15 @@ You need:
|
||||||
|
|
||||||
## Python prep
|
## Python prep
|
||||||
|
|
||||||
1. Check out the code. cd to the repository. Build it and install it in your working environment.
|
1. Check out the code.
|
||||||
|
2. cd to the repository.
|
||||||
|
3. Build it and install it in your working environment.
|
||||||
1. `python3 -m venv .venv`
|
1. `python3 -m venv .venv`
|
||||||
2. Run `pyproject-build`
|
2. `. .venv/bin/activate`
|
||||||
3. Assuming your current working directory is the root of this repository, install into your build environment with `pip install -e .`
|
3. `pip install -r requirements.txt`
|
||||||
2. Copy the `example.env` file to a file named `.env` in the root of this repo.
|
4. Assuming your current working directory is the root of this repository, install into your build environment with `pip install -e .`
|
||||||
3. Edit that `.env` file to contain all the secrets!
|
4. Copy the `example.env` file to a file named `.env` in the root of this repo.
|
||||||
|
5. Edit that `.env` file to contain all the secrets!
|
||||||
|
|
||||||
## Initialise your Mastodon app
|
## Initialise your Mastodon app
|
||||||
|
|
||||||
|
@ -30,6 +33,8 @@ This is a one-time thing you do ever. First time you go to run the bot in a new
|
||||||
|
|
||||||
# Running
|
# Running
|
||||||
|
|
||||||
Assuming everything is up to date, all your files initialised with correct values, you can just run `toota-palooza`.
|
Set get the `toota-palooza` command into your path so you can invoke it. Run `pip install -e .`
|
||||||
|
|
||||||
Currently it runs once, does its stuff, and exits.
|
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.
|
|
@ -3,7 +3,7 @@ from mastodon import Mastodon
|
||||||
'''
|
'''
|
||||||
Mastodon.create_app(
|
Mastodon.create_app(
|
||||||
'toota-palooza',
|
'toota-palooza',
|
||||||
api_base_url = 'https://infosec.exchange',
|
api_base_url = 'https://always.grumpy.world',
|
||||||
to_file = '../.toota-palooza.env'
|
to_file = '../.toota-palooza.env'
|
||||||
)
|
)
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Reference in New Issue