coabot/index.js
2019-09-14 10:03:02 +08:00

15 lines
481 B
JavaScript

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')
require('./src/url_metadata')
require('./src/reactions')
bot.start() // 🚀