- Python 3.10
- irc - IRC protocol client library for Python
- SQLAlchemy
- Psycopg
- pytz - World Timezone Definitions for Python
- Beautiful Soup 4
- Flask
pip install -r requirements.txt
A PostgreSQL database is required for most features to fully work. Use the included docker compose config for a low effort development database setup:
docker-compose up -d --force-recreate --renew-anon-volumes postgres
Create a new config_local.py
by copying the example config:
cp config_local.py.example config_local.py
Open config_local.py
and change the defaults to suit your preferences.
At the very least set the following options:
NICK
: Set to something uniqueSERVER
: Use your preferred server or try some of the supplied alternativesDATABASE_URI
: Point to an existing postgresql database or useNone
to run without a database (but note that a database is required by most features)
Required by some features, will run fine without setting these:
GOOGLE_API_KEY
: required by specific commandsAPI_HOST
andWEBUI_ADDRESS
: related to web UI integration
Run the main entrypoint from the src
directory:
cd src
./flipper.py
- Data files for importer scripts and talkcommand.
$ cd scripts
$ PYTHONPATH=../src python markov_import_flat_file.py
$ PYTHONPATH=../src python markov_import_xml.py