nxy irc bot
migrate | ||
nxy | ||
.env-example | ||
.gitignore | ||
config.json | ||
nxy-bot.service | ||
README.md | ||
repl.py | ||
requirements.txt | ||
schema.sql | ||
ssl.error |
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