Closed danielnjoo closed 6 years ago
Here's how I did it:
const bootbot = require('bootbot');
const bot = new bootbot({
accessToken: process.env.ACCESS_TOKEN,
verifyToken: process.env.VERIFY_TOKEN,
appSecret: process.env.APP_SECRET
});
// All the bot logic here
bot.start(process.env.PORT || 3000);
I'll close this because @PandawanFr's solution should work and @danielnjoo hasn't responded. Thanks @PandawanFr
Hi, I've seen similar issues, but can't seem to find a solution that works:
Hosting on heroku requires a different port so I changed line 31 of BootBot.js to:
this.app.set('port', process.env.PORT || 3000);
And tried changing my package.json to use relative (local) file paths, which didn't work. So I tried linking it to a forked version on GitHub like so:
"bootbot": "https://github.com/danielnjoo/bootbot/tarball/master",
(Also tried appending Git+ to the front)
But all fail on deploying to heroku with the following error: