| View previous topic :: View next topic |
| Author |
Message |
Fr3aK Voice
Joined: 11 Apr 2013 Posts: 4
|
Posted: Tue Jul 30, 2013 2:36 pm Post subject: On nick |
|
|
Hello,
Is there a command that checks the nick and if it starts lets say with me_ the bot will say something?
Thanks in advance! |
|
| Back to top |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Tue Jul 30, 2013 3:52 pm Post subject: Re: On nick |
|
|
| Fr3aK wrote: | Hello,
Is there a command that checks the nick
|
When? ...
Upon joining a channel?
| Quote: |
and if it starts lets say with me_ the bot will say something?
|
Here are some links that you will find useful for learning to write your own TCL scripts for Eggdrop.
http://suninet.the-demon.de/
http://www.tcl.tk/man/tcl8.5/TclCmd/contents.htm
http://www.eggheads.org/support/egghtml/1.6.21/tcl-commands.html
Something like what you have requested is a good place to start.
It is not long and complicated.
| Code: |
# July 30, 2013
# http://forum.egghelp.org/viewtopic.php?t=19492
bind join - "* me_*" speak_to_me_
proc speak_to_me_ {nick uhost handle chan} {
putserv "privmsg $chan :Hello $nick"
}
|
|
|
| Back to top |
|
 |
Fr3aK Voice
Joined: 11 Apr 2013 Posts: 4
|
Posted: Wed Jul 31, 2013 4:01 am Post subject: |
|
|
| Oh, thank you! |
|
| Back to top |
|
 |
|