You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 20, 2024. It is now read-only.
I'm getting an error regarding timeout. The log says a correct listening port should be set. Should I set up a web server instead of just using controller.spawn() and startRTM() function?
Error restarting application: Start app timeout
TIP: Application must be listening on the right port. Instead of hard coding the port, use the $PORT environment variable.
Code: same as Basic Usage code
varBotkit=require('botkit');varcontroller=Botkit.slackbot({});// connect the bot to a stream of messagescontroller.spawn({token: <my_slack_bot_token>,
}).startRTM()// give the bot something to listen for.controller.hears('hello',['direct_message','direct_mention','mention'],function(bot,message){bot.reply(message,'Hello yourself.');});