| View previous topic :: View next topic |
| Author |
Message |
McMilan Voice
Joined: 13 Mar 2009 Posts: 24
|
Posted: Fri Mar 13, 2009 3:30 pm Post subject: type a command and the bot respond |
|
|
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? |
|
| Back to top |
|
 |
Fill Halfop
Joined: 18 Jan 2009 Posts: 80
|
Posted: Fri Mar 13, 2009 4:18 pm Post subject: |
|
|
Here it is:
| Code: |
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 |
|
| Back to top |
|
 |
|