JakobOvrum / Diggler

IRC bot framework for the D programming language
http://jakobovrum.github.io/Diggler/
Other
6 stars 5 forks source link

Making sure the bot is online, reconnecting when disconnected #13

Open fbis251 opened 9 years ago

fbis251 commented 9 years ago

Hey guys, I was wondering what the best way to go about keeping the bot online is.

Thanks.

JakobOvrum commented 8 years ago

@fbis251, sorry for being late, I forgot about this. If you only have one bot in the event loop, simply reconnecting and recalling run should do it (run exits when there are no more connected clients in the event loop). With multiple bots it's not clear how to do it. IrcEventLoop probably needs an event onDisconnect to allow users to reconnect.