From 08c88b35e28fe2319d0a948841edff6ae34f2716 Mon Sep 17 00:00:00 2001 From: Paco Hope Date: Fri, 25 Nov 2022 16:25:07 -0500 Subject: [PATCH] Fixed instructions --- README.md | 19 ++++++++++++------- toota-palooza/__init__.py | 2 +- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 97a2d50..40d178b 100644 --- a/README.md +++ b/README.md @@ -12,12 +12,15 @@ You need: ## 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` - 2. Run `pyproject-build` - 3. Assuming your current working directory is the root of this repository, install into your build environment with `pip install -e .` -2. Copy the `example.env` file to a file named `.env` in the root of this repo. -3. Edit that `.env` file to contain all the secrets! + 2. `. .venv/bin/activate` + 3. `pip install -r requirements.txt` + 4. Assuming your current working directory is the root of this repository, install into your build environment with `pip install -e .` +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 @@ -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 -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. \ No newline at end of file +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. \ No newline at end of file diff --git a/toota-palooza/__init__.py b/toota-palooza/__init__.py index f4e2c24..1b3aae0 100644 --- a/toota-palooza/__init__.py +++ b/toota-palooza/__init__.py @@ -3,7 +3,7 @@ from mastodon import Mastodon ''' Mastodon.create_app( 'toota-palooza', - api_base_url = 'https://infosec.exchange', + api_base_url = 'https://always.grumpy.world', to_file = '../.toota-palooza.env' ) '''