Created
August 9, 2016 18:19
-
-
Save selfcontained/8f3b726ef4b69e270dbdb1eb10ad2b41 to your computer and use it in GitHub Desktop.
Slapp Firebase setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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