f28b67c00da06800967cc56c707ab4aff00d9553
Installation
- Setup pgsql, create user and database, create schema (last step only if you have a dump):
psql -U postgresCREATE ROLE nxy WITH ENCRYPTED PASSWORD 'your-password';ALTER ROLE nxy LOGIN;CREATE DATABASE nxy_prod OWNER nxy;\q
psql -U nxy -U nxy_prod < nxy/files/schema.sqlpsql -U nxy -d nxy_prod < path/to/dump.sql
- Clone repo
git clone https://gitfap.de/mrhanky/nxy.git
- Create virtualenv, activate it and install dependencies
python3 -m venv envsource env/bin/activepip install -r nxy/requirements.txt
- Copy
nxy/files/config.jsonandnxy/files/config.jsonand modify themcp nxy/files/{.env,config.json} .vim .env config.json
- Enable linger for nxy user (so the user unit starts on boot)
sudo loginctl enable-linger nxy
- Link systemd unit, enable and run it
mkdir -p $HOME/.config/systemd/userln -fs $HOME/nxy/files/nxy-bot.service $HOME/.config/systemd/usersystemctl --user daemon-reloadsystemctl --user enable --now nxy-bot.service
Description
Languages
Python
96.3%
PLpgSQL
3.7%