0.0.1 • Published 9 years ago

redribbot-brain v0.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

redribbot-brain

A tiny brain for redribbot scripts.

Install

npm install redribbot-brain

Usage

FIREBASE_TOKEN should be on environemnt variable.

B = require 'redribbot-brain'

# firebase root ref can be accessed via B.root
root   = B.root
keyRef = root.child 'key'

# callback will be called when authentication complete successfully
B.auth (auth) ->
  return unless auth
  # fetch data or other initialization process