nxy irc bot
Go to file
2017-07-04 15:47:57 +02:00
migrate Added migrate script, ready to roll i guess 2017-06-30 17:47:24 +02:00
nxy Bla, added install instructions 2017-07-04 15:22:20 +02:00
.env-example Bla, added install instructions 2017-07-04 15:22:20 +02:00
.gitignore Updated README and systemd unit 2017-07-04 15:47:57 +02:00
config.json-example Updated README and systemd unit 2017-07-04 15:47:57 +02:00
nxy-bot.service Updated README and systemd unit 2017-07-04 15:47:57 +02:00
README.md Updated README and systemd unit 2017-07-04 15:47:57 +02:00
repl.py Import order... 2017-06-30 14:09:46 +02:00
requirements.txt Some refactoring, pgsql follows...soon™ 2017-06-29 22:56:32 +02:00
schema.sql Bla, added install instructions 2017-07-04 15:22:20 +02:00
ssl.error Renamed db storage plugin, added comments, updated bot startup script with comments, commented the repl helper and added the ssl error from n0xy for later fix, updated sql schema 2017-06-30 13:33:21 +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, source virtualenvwrappers script
    • sudo -u nxy -i
    • source $(which virtualenvwrapper.sh)
  • Clone repo and change current dir
    • git clone https://gitfap.de/mrhanky/nxy.git
    • cd nxy
  • Create virtualenv and install dependencies
    • mkvirtualenv -a $PWD -r $PWD/requirements.txt nxy
  • Copy .env-example and insert values in .env (replace everything wrapped in < and >)
    • cp .env-example .env
    • vim .env
  • Copy config.json and modify it (setup ZNC etc.)
    • cp config.json-example config.json
    • vim config.json
  • Leave (auto) activated virtualenv and exit the bot's shell
    • deactivate && exit
  • Copy systemd unit and enable it (would recommend the /usr/local prefix). Don't forget to modify the systemd unit if your user and home directory are different!
    • sudo mkdir -p /usr/local/lib/systemd/system
    • sudo cp /home/nxy/nxy/nxy-bot.service /usr/local/lib/systemd/system
    • sudo systemctl daemon-reload
    • sudo systemctl enable --now nxy-bot.service