Skip to content

Instantly share code, notes, and snippets.

@selfcontained
Created August 9, 2016 18:19
Show Gist options
  • Save selfcontained/8f3b726ef4b69e270dbdb1eb10ad2b41 to your computer and use it in GitHub Desktop.
Save selfcontained/8f3b726ef4b69e270dbdb1eb10ad2b41 to your computer and use it in GitHub Desktop.
Slapp Firebase setup
'use strict'
const Slapp = require('slapp')
const Context = require('./context')
const ConvoStore = require('./convo-store')
module.exports = (server, db) => {
let app = Slapp({
verify_token: process.env.SLACK_VERIFY_TOKEN,
context: Context(db),
convo_store: ConvoStore(db)
})
app
.message('fix it', 'ambient', (msg) => {
msg.say('https://www.youtube.com/watch?v=yo3uxqwTxk0')
})
.attachToExpress(server)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment