ORE's Discord bot. Built as a replacement for Chad.
Patrick can be run by installing dependencies then executing patrick.py
:
pip install -r requirements.txt
python patrick.py
Build with buildah:
buildah bud -t patrick .
Run the container:
podman run -d --name patrick \
--env-file .env \
-v $(pwd):/app:Z \
localhost/patrick
For deployment, create a systemd unit file:
podman generate systemd --name patrick \
--restart-policy=always \
--restart-sec=5 > patrick.service
Finally, save this unit file in the appropriate location and enable the service.
Pushing changes to a deployed instance requires removing the patrick
container, rebuilding Patrick, then rerunning it.