riiidbot-brain

0.1.0 • Public • Published

riiidbot-brain

A tiny firebase brain for riidbot.

Install

npm install riiidbot-brain

Usage

FIREBASE_SECRET, FIREBASE_URL should be on environemnt variable.

B = require 'riiidbot-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.root.onAuth (auth) ->
  return unless auth
  # fetch data or other initialization process

Readme

Keywords

Package Sidebar

Install

npm i riiidbot-brain

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • kykim