mainLoop

This loops creates a Generator Fiber to loop over the connected Socket.

Full lines are stored in ListenAttempts, which are yielded in the Generator to be caught here, consequently parsed into IRCEvents, and then dispatched to all plugins.

private
mainLoop

Parameters

instance Kameloso

The current Kameloso instance.

Return Value

Type: auto

Next.returnFailure if circumstances mean the bot should exit with a non-zero exit code, Next.returnSuccess if it should exit by returning 0, Next.retry if the bot should reconnect to the server. Next.continue_ is never returned.