b970f383444d24c291472e82cec01b2762cb9326
				
			
			
		
	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 
nxysudo -u nxy -i
 - Clone repo and change current dir
git clone https://gitfap.de/mrhanky/nxy.gitcd nxy
 - Create virtualenv, activate it and install dependencies
python3 -m venv envsource env/bin/activepip install -r nxy/requirements.txt
 - Create needed tables in the database:
psql -U <your db user> < files/schema.sql
 - Copy 
nxy/files/.envand insert values in.env(replace everything wrapped in < and >)cp nxy/files/.env .envvim .env
 - Copy 
nxy/files/config.jsonand modify it (setup ZNC etc.)cp nxy/files/config.json config.jsonvim config.json
 - If database is empty, import your database dump:
psql -U nxy -d nxy < /path/to/dump.sql
 - 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%