Were planning on writing a tcl script for an eggdrop which will act as simple services on our little irc network. Obviously this can be done just by connecting eggdrop as a normal user with ircop priviledges, but is it possible to get an eggdrop to connect as a service to an ircd instead of as a user, via a .tcl script or otherwise?
In essance it would be possible, allthough it has not been done to this date (that I am aware of).
Having not had chance to look at how services connect to a server (client or server mode?), I don't know.
However, saying this, my advice would be not too.
While Tcl will allow this to happen, I do not recomend it, as the bot would become unresponsive. Possibily more than if you placed the bot in all channels. This is true, even if a service will take less bandwidth than being in every channel. This is due to the fact that Tcl is slow.
For every day scripts Tcl is fine. But when it's time to use Tcl as the sole traffic processor, then bottlenecks occur (traffic flowing faster than Tcl can process it).
Yes, code can be optimised, but to do this, you would need to the code causing long lead times. IE, you strip it down to the point, where it's doign the job, and only the job. But this will open the script up to floods and other attacks.
Instead of running an eggdorp, run a service bot directly.