18695cf011af07e5098cbcd5b7fe45fa737e0975
does this make you smile? See merge request !1
Installation
- Open shell as user nxy will run. These instructions will use
nxyas user and/home/nxyas its home directory. - Install virtualenvwrapper (ideally system wide).
- Open shell as user
nxy, source virtualenvwrappers scriptsudo -u nxy -isource $(which virtualenvwrapper.sh)
- Clone repo and change current dir
git clone https://gitfap.de/mrhanky/nxy.gitcd nxy
- Create virtualenv and install dependencies
mkvirtualenv -a $PWD -r $PWD/requirements.txt nxy
- Create needed tables in the database:
psql -U <your db user> < files/schema.sql
- Copy
files/.envand insert values in.env(replace everything wrapped in < and >)cp files/.env .envvim .env
- Copy
files/config.jsonand modify it (setup ZNC etc.)cp files/config.json config.jsonvim config.json
- If database is empty, import your database dump:
psql -U nxy -d nxy < /path/to/dump.sql
- Leave (auto) activated virtualenv and exit the bot's shell
deactivate && exit
- Copy systemd unit and enable it (would recommend the
/usr/localprefix). Don't forget to modify the systemd unit if your user and home directory are different!sudo mkdir -p /usr/local/lib/systemd/systemsudo ln -fs /home/nxy/bot/files/nxy-bot.service /usr/local/lib/systemd/systemsudo systemctl daemon-reloadsudo systemctl enable --now nxy-bot.service
Description
Languages
Python
96.3%
PLpgSQL
3.7%