| View previous topic :: View next topic |
| Author |
Message |
eger Voice
Joined: 11 Aug 2005 Posts: 2
|
Posted: Thu Aug 11, 2005 2:31 pm Post subject: Make DCC chat connection to external bot? |
|
|
Wondering if it might be possible to make a DCC CHAT connection to another bot such as an iroffer fileserver or other user from script?
I'm interested in trying to write an eggdrop script to connect to an iroffer bot and do a command from an eggdrop. But the iroffer bot only support DCC CHAT.
Are there any tcl commands that can do something like this? If so where might I find some examples of external dcc chat scripts?
Thanks! |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Thu Aug 11, 2005 3:00 pm Post subject: |
|
|
| Code: |
set port 5678
listen $port script grab
proc grab idx {control $idx handler}
proc handler {idx text} {
# here comes your stuff
}
putserv "privmsg irofferbot :\001DCC CHAT chat [myip] $port\001"
|
|
|
| Back to top |
|
 |
eger Voice
Joined: 11 Aug 2005 Posts: 2
|
Posted: Thu Aug 11, 2005 4:11 pm Post subject: |
|
|
pretty much exactly what i asked for.
thanks a bunch!!!! |
|
| Back to top |
|
 |
|