/Ragnarok

Primary LanguageJavaScriptMIT LicenseMIT

Ragnarok

DEV BUILD MASTER BUILD LICENSE DEPENDENCIES
Build status Build status License Dependencies

Installation guide for Ubuntu 16.04.2 LTS

Make sure the node version is > 7.6.0

node -v
> 7.6.0

Install PostgresSQL

If Postgres is not installed yet, follow these steps. If it is already installed, you should create a new db or use an existing one.

sudo apt-get update
sudo apt-get install postgresql postgresql-contrib

// create postgres user
sudo -i -u postgres
createuser -P --interactive <name>
createdb ragnarok

Install Redis

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:chris-lea/redis-server
sudo apt-get update
sudo apt-get install redis-server

Install required libraries

sudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++

Update node_modules

sudo is optional on this step but you may run into node-gyp rebuild error.

sudo npm i

Clone settings

cp settings.json.example settings.json
sudo npm install

After you clone the settings, edit them with your connection information. You'll also need to grab your bot token from the discord api page

...
"token": "<token>",
"db":"postgres://<username>:<password>@localhost/commando"
...

Launch Ragnarok

If there is a sequelize error, re-run the start command. The initial "X doesn't exist is normal."

node --harmony Commando.js