zD12 / pircbotx

Automatically exported from code.google.com/p/pircbotx
0 stars 0 forks source link

bot.connect() don't terminate #129

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Before the all latest rewrites, I can execute something after bot.connect(), I 
updated the PircBotX library to reflect the latest changes, changed something 
on my code to work, and now the void bot.connect() don't terminate, always is 
running, my fast look on the PircBotX's source for me is probably because of 
startLineProcessing() (has a while without breaking it). I need the void 
bot.connect() terminate to I execute other things (like console commands, etc), 
thanks if you fix it or send me a workaround ;)

Original issue reported on code.google.com by joseoliv...@gmail.com on 16 May 2013 at 5:00

GoogleCodeExporter commented 9 years ago
See 
http://code.google.com/p/pircbotx/wiki/MigrationGuide2#Elimination_of_IO_Threads

Essentially the PircBotX class is not handling IO threading anymore. This does 
simplify things both code wise and for people that want to manage their own 
threading. You just call connect() and it starts the connection

If you don't want to manage threading yourself then use MultiBotManager. Not 
only does it manage threading for you, but it also makes it trivial to connect 
to more servers

Original comment by Lord.Qua...@gmail.com on 16 May 2013 at 8:14