Discord bot for PZSD server
Install uv and then run the following:
# create virtual environment and activate it
uv venv
source .venv/bin/activate
# install dependencies
uv pip sync requirements.txt
Install postgresql and create a database called pzsd
:
createdb -O postgres pzsd
Run migrations:
# with virtual environment active
alembic upgrade head
Before running the bot, a .env
file is expected to exist that looks like the following:
BOT_TOKEN=yourbottokenhere
POINTS_LOG_CHANNEL=channelidhere
# with virtual environment active
python -m pzsd_bot
If you've made a change to pzsd_bot/model.py, you can generate a new migration file:
alembic revision --autogenerate -m "description of your migration"