nxy/README.md
2017-07-04 15:22:20 +02:00

720 B

Installation

  • Open shell as user nxy will run
  • Install virtualenvwrapper and source it
    • source $(which virtualenvwrapper.sh)
  • Clone repo
    • git clone https://gitfap.de/mrhanky/nxy.git
  • Create virtualenv and install dependencies
    • mkvirtualenv -a $PWD/nxy -r $PWD/nxy/requirements.txt nxy
  • Copy .env-example and insert values in .env (replace everything wrapped in < and >)
    • cp .env-example .env
    • vim .env
  • Leave (auto) activated virtualenv and
    • deactivate
  • Copy systemd unit (would recommend the /usr/local prefix)
    • sudo mkdir -p /usr/local/lib/systemd/system
    • sudo cp $PWD/nxy/nxy-bot.service /usr/local/lib/systemd/system