howdyai / botkit

Botkit is an open source developer tool for building chat bots, apps and custom integrations for major messaging platforms.
MIT License
11.48k stars 2.28k forks source link

Bot just goes away #200

Closed Kerwood closed 8 years ago

Kerwood commented 8 years ago

I made a bot that works flawlessly.. Except that after around 24 hours, it just goes away. The Node JS app is still running after it goes away and the log gives me nothing, literally .

I've made a getPresence on the bot and it gives me this. {"ok":true,"presence":"away","online":false,"auto_away":false,"manual_away":false,"connection_count":0}

Why is the bot disconnecting ?

thojkooi commented 8 years ago

Did you check for the team_migration_started event? Perhaps the server your team is on got migrated.

https://api.slack.com/events/team_migration_started

Kerwood commented 8 years ago

Cool.. That sound reasonable. But where can i check for this team_migration_started event ?

benbrown commented 8 years ago

You should also enable connection retries in your call to controller.spawn: https://github.com/howdyai/botkit/blob/master/readme-slack.md#controllerspawn

Kerwood commented 8 years ago

Thanks @benbrown.. That will properly solve my problem :)

cloudlena commented 8 years ago

Is there any reason why retry defaults to false? That doesn't make too much sense in my opinion.