| View previous topic :: View next topic |
| Author |
Message |
emophobic Voice
Joined: 06 Jul 2007 Posts: 2
|
Posted: Fri Jul 06, 2007 12:53 pm Post subject: Tcl to make the bot DCC me |
|
|
something like when I type /msg bot chat
The bot will dcc me.. I tried /ctcp <botnick> CHAT but the network doesn't allow _________________ shhh.. be quiet, the mice are sleeping |
|
| Back to top |
|
 |
Anansi Voice
Joined: 02 Jul 2007 Posts: 16
|
Posted: Fri Jul 06, 2007 2:05 pm Post subject: |
|
|
In your eggdrop.conf, replace
by
| Code: | set myport 55555
listen $myport users |
Where 55555 is the port you want to use.
Then add the following tcl:
| Code: | bind msg p !chatme sendinvite
proc sendinvite {nick usermask handle chan text} {
global myport
putserv "PRIVMSG $nick :\001DCC CHAT chat [myip] $myport\001"
} |
Your IRC client will understand this CTCP request as a request to initiate a DCC Chat connection.
Last edited by Anansi on Sat Jul 07, 2007 9:12 am; edited 3 times in total |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Fri Jul 06, 2007 5:48 pm Post subject: |
|
|
The code is \001.
| Code: | | putserv "PRIVMSG $nick :\001DCC CHAT chat [myip] $myport\001" |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Anansi Voice
Joined: 02 Jul 2007 Posts: 16
|
Posted: Sat Jul 07, 2007 9:06 am Post subject: |
|
|
Didn't know TCL supported escape ^^ Usually I include the actual characters in the script.
Aditionally, it may make more sense to replace that "o" with a "p" in the bind command. |
|
| Back to top |
|
 |
|