This document aims to be a step-by-step guide to installing Lopez.
It probably fails in this.
- Install and configure
postgresql
- You must have at least one database with at least one user who can create and modify tables. Make sure it matches up with the details in
config.py
- You must have at least one database with at least one user who can create and modify tables. Make sure it matches up with the details in
- Install Lopez's Python module requirements with
pip install -r requirements.txt
- Run
setup.py
to set up Postgres tables - Create
creds.txt
. It should contain only the Discord bot token you want to use to log in on a single line.
Now that you've done basic setup, you need to decide if you want to develop or run Lopez. Remember: running your own instance of Lopez is discouraged, and a public instance is available.
git checkout develop
- Install
pre-commit
. You can do this with a simplepip install -r requirements-dev.txt
- Install the
black
commit hook withpre-commit install
. This insures all committed code conforms to the same highly opinionated style spec.
- Install the
- Write code. Send it back as a pull request. Get a sense of pride and accomplishment.
- Be sure to check the most recent revision of this file in the unlikely event that the requirements change.
Last chance to use the stable, well serviced public instance instead!
- Set up systemd unit (technically optional)
- See the DO tutorial for now. You will likely need to create a launcher script to
cd
into your copy of Lopez to properly load all modules.
- See the DO tutorial for now. You will likely need to create a launcher script to