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.

How do i add commands like ".quit" ?

Old posts that have not been replied to for several years.
Locked
_
_N-e-O_

How do i add commands like ".quit" ?

Post by _N-e-O_ »

Hey,
how do i added thru the shell commands like ".quit" or ".+chan" ?
where is the file that contain all of those?

Thanks(:
d
darko``
Op
Posts: 121
Joined: Sun Sep 08, 2002 5:33 pm
Location: Malta

Post by darko`` »

You have to use 'bind dcc' which is explained in doc/tcl-commands.doc. In case you are new to all this (and because i am unusually good today) here is a small example.

bind dcc o|o sayonchan proc:mydcc

binddcc {handle idx text} {

putserv "PRIVMSG #put-some-channel-here :[hand2nick $handle] just typed $text"
}


Usage: .sayonchan <some text here>

This trivial example should be a good starting point.
Ignorant and lazy people will save 30 minutes by chosing simple config file. Smart ones will save 3000 minutes of *everyone's* time by opting for complete config file.
m
masskilla
Op
Posts: 172
Joined: Wed Oct 03, 2001 8:00 pm
Location: Croatia

Post by masskilla »

Hi

You also might want to check out Suninet's TCL Guide. It's a good tutorial on writing TCL scripts for eggdrop.
MaSsKilla

#eggdrop
Undernet
_
_N-e-O_

Post by _N-e-O_ »

Thank you(:
Locked