nxy irc bot
Go to file
2017-08-22 16:47:10 +02:00
bot Moved @irc3.plugin into bot.plugins.BasePlugin -> saved some lines 2017-08-22 16:47:10 +02:00
files Updated install instructions 2017-08-21 18:17:13 +02:00
.gitignore Cleanup, fixed some bugs (yt etc) 2017-07-31 15:29:59 +02:00
FORMATTING.md Massive refactoring/-structuring 2017-07-07 02:49:37 +02:00
README.md Updated install instructions 2017-08-21 18:17:13 +02:00
repl.py Massive refactoring/-structuring 2017-07-07 02:49:37 +02:00
requirements.txt Moved @irc3.plugin into bot.plugins.BasePlugin -> saved some lines 2017-08-22 16:47:10 +02:00
TODOs Fixed bug in rainbow function which breaks output with numbers 2017-08-01 15:50:12 +02:00
tox.ini Massive refactoring/-structuring 2017-07-07 02:49:37 +02:00

Installation

  • Open shell as user nxy will run. These instructions will use nxy as user and /home/nxy as its home directory.
  • Install virtualenvwrapper (ideally system wide).
  • Open shell as user nxy
    • sudo -u nxy -i
  • Clone repo and change current dir
    • git clone https://gitfap.de/mrhanky/nxy.git
    • cd nxy
  • Create virtualenv, activate it and install dependencies
    • python3 -m venv env
    • source env/bin/active
    • pip install -r nxy/requirements.txt
  • Create needed tables in the database:
    • psql -U <your db user> < files/schema.sql
  • Copy nxy/files/.env and insert values in .env (replace everything wrapped in < and >)
    • cp nxy/files/.env .env
    • vim .env
  • Copy nxy/files/config.json and modify it (setup ZNC etc.)
    • cp nxy/files/config.json config.json
    • vim 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/user
    • ln -fs $HOME/nxy/files/nxy-bot.service $HOME/.config/systemd/user
    • systemctl --user daemon-reload
    • systemctl --user enable --now nxy-bot.service