Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
grotlogic
static
templates
tests
.gitignore
README.md
__init__.py
db_init.py
game_room.py
mongod
oauth.py
requirements.txt
result.py
server.py
settings.py
user.py

README.md

GROT

Requirements

Install

$ mkvirtualenv grot-server -p /usr/bin/python3.5
$ pip3 install -r requirements.txt
$ mkdir -p var/db
$ mkdir -p var/log
$ export BOT_TOKEN=`cat /proc/sys/kernel/random/uuid`
$ echo "BOT_TOKEN = '$BOT_TOKEN'" >> settings.py
$ python3 db_init.py
$ cd ..
$ git clone git@github.com:stxnext/grot-stxnext-bot.git

Configure GitHub OAuth

Fill in Register a new OAuth application form. Save generated Client ID in GH_OAUTH_CLIENT_ID and Client Secret in GH_OAUTH_CLIENT_SECRET in settings.py file.

Run

Server

$ workon grot-server
$ ./mongod
$ python3 server.py

Tests

$ python3 tests/test_server.py
$ python3 -m unittest discover

Client

For details check grot-client repository.