This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Communicating with the bot externally

Old posts that have not been replied to for several years.
Locked
m
malone

Post by malone »


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.

Anyone have any ideas?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

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.
Locked