coabot/index.js

16 lines
481 B
JavaScript
Raw Normal View History

2019-09-12 09:02:55 +00:00
const bot = require('bbot')
/** This is a workaround for Heroku to confirm web binding. */
// @todo Remove this when bBot includes Express (next release)
const http = require('http')
const handle = (req, res) => res.end('hit')
const server = http.createServer(handle)
server.listen(process.env.PORT || 5000)
/** Add your bot logic here. Removing the imported examples. */
// require('./src/examples')
2019-09-14 02:03:02 +00:00
require('./src/url_metadata')
2019-09-12 09:02:55 +00:00
require('./src/reactions')
bot.start() // 🚀