egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tcl to make the bot DCC me

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
emophobic
Voice


Joined: 06 Jul 2007
Posts: 2

PostPosted: Fri Jul 06, 2007 12:53 pm    Post subject: Tcl to make the bot DCC me Reply with quote

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
View user's profile Send private message
Anansi
Voice


Joined: 02 Jul 2007
Posts: 16

PostPosted: Fri Jul 06, 2007 2:05 pm    Post subject: Reply with quote

In your eggdrop.conf, replace

Code:
listen 55555 users


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
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Fri Jul 06, 2007 5:48 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Anansi
Voice


Joined: 02 Jul 2007
Posts: 16

PostPosted: Sat Jul 07, 2007 9:06 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber