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.

type a command and the bot respond

Help for those learning Tcl or writing their own scripts.
Post Reply
M
McMilan
Voice
Posts: 24
Joined: Fri Mar 13, 2009 3:24 pm

type a command and the bot respond

Post by McMilan »

Hello there.

I'm new in eggdrops.

I want to create some commands.

For exemple, i type "!egghelp" and the bot wil reply "Website about discussion of eggdrop bots, shell accounts and tcl scripts."

How can i create a script so?
F
Fill
Halfop
Posts: 80
Joined: Sun Jan 18, 2009 6:08 pm

Post by Fill »

Here it is:

Code: Select all

bind pubm - "#ChanName !egghelp" egghelp

proc egghelp { nick uhost hand chan text } {
puthelp "PRIVMSG $chan :Website about discussion of eggdrop bots, shell accounts and tcl scripts."
}
Pretty simple ;)

Here are some new TCL guides to beginners:
http://wiki.tcl.tk/
http://johoho.eggheads.org/eggdrop/other/guide2tcl.html

See ya
Post Reply