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.

Interaction question

Old posts that have not been replied to for several years.
Locked
D
DustWolf
Voice
Posts: 4
Joined: Sat Aug 14, 2004 9:39 am
Location: Slovenia
Contact:

Interaction question

Post by DustWolf »

Hello,

I hope I picked the right forum for this.

I am trying to allow remote access to an EggDrop from a non-EggDrop application. To do this I use a modified telnet client to connect to the EggDrop's "bots" port.

The problem is that the moment I connect, nothing happens. The owner of the EggDrop tells me there is some communication taking place but I do not know (nor does he) what exactly does the EggDrop I connected to expect from my application.

Can anyone please point me to any resources that would help me with this?
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

Use the tcl/eggdrop command 'control'.

ex:

Code: Select all

set openport [listen 4567 script init:connection]

proc init:connection {idx} {
 # Send back 'connected' so you know you have a connection.
 putidx $idx "CONNECTED"
 control $idx init:connection
}

proc open:connection {idx var} {
 # do yer thing here
}
See tcl-commands.doc for details.
D
DustWolf
Voice
Posts: 4
Joined: Sat Aug 14, 2004 9:39 am
Location: Slovenia
Contact:

Post by DustWolf »

gb wrote:Use the tcl/eggdrop command 'control'.

ex:

Code: Select all

set openport [listen 4567 script init:connection]

proc init:connection {idx} {
 # Send back 'connected' so you know you have a connection.
 putidx $idx "CONNECTED"
 control $idx init:connection
}

proc open:connection {idx var} {
 # do yer thing here
}
See tcl-commands.doc for details.
Where do I use this code and where do I get tcl-commands.doc?
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

TCL (Tool Command Language) scripts are used by eggdrop (loaded via configuration file) and can also be used by X-Chat (with TCL plugin) under Linux.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

tcl-commands.doc is a list of eggdrop-specific tcl commands, and it comes with eggdrop. Look in the docs/ dir.
Locked