Skip to content
:shipit: Hubot for Riiid!
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
scripts
.dockerignore
.editorconfig
.gitignore
Dockerfile
LICENSE
Procfile
README.md
external-scripts.json
hubot-scripts.json
package.json

README.md

riiidbot

Hubot for riiid.

Run

$ docker run -it \
  -p <HOST_PORT>:<PORT_FOR_HUBOT> \
  -e HUBOT_SLACK_TOKEN=<YOUR_SLACK_TOKEN> \
  -e FIREBASE_URL=<FIREBASE_URL> \
  -e FIREBASE_SECRET=<FIREBASE_SECRET> \
  -e EXPRESS_PORT=<PORT_FOR_HUBOT> \
  riiid/riiidbot

Override entrypoint to test it locally.

$ docker run -it -p 9000:9000 --entrypoint=/src/hubot/bin/hubot riiid/riiidbot

passing --rm will always give you fresh container. see $ docker run --help.

Running Locally

If you don't like docker (:feelsgood:),

$ git clone riiid/riiidbot
$ cd riiidbot
$ npm run start-dev
Hubot> hubot help

Scripting

See scripts/example.coffee, or visit Scripting Guide.

Deploy

Build Image

To build docker image for riiidbot,

$ docker build -t riiid/riiidbot .

Test Image on local

$ docker run -it --rm riiid/riiidbot run start-dev

or If you with test with full env variables,

$ docker run -it --rm \
  -p <HOST_PORT>:<PORT_FOR_HUBOT> \
  -e HUBOT_SLACK_TOKEN=<YOUR_SLACK_TOKEN> \
  -e FIREBASE_URL=<FIREBASE_URL> \
  -e FIREBASE_SECRET=<FIREBASE_SECRET> \
  -e EXPRESS_PORT=<PORT_FOR_HUBOT> \
  riiid/riiidbot
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.