I have a webpage written in php and I would like the php script to send messages to the Eggdrop, which it would then read out.
At the moment Im making the php script write to a file on the disk. Ive then written a tcl script that reads this file every minute, and outputs what it finds in it.
Id really like to talk to the bot directly, so it outputs the message instantly. I thought about using the telnet facilities, but I think it would be overkill to log in this way each time.
Eggdrop (and Tcl itself) have socket scripting abilities.
You can code a socket/listening connection in Tc, and load it in eggdrop. Then use PHP's socket abilities to link directly to eggdrop, and thus using your own defined protocol.