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.

On nick

Help for those learning Tcl or writing their own scripts.
Post Reply
F
Fr3aK
Voice
Posts: 4
Joined: Thu Apr 11, 2013 12:09 pm

On nick

Post by Fr3aK »

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!
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Re: On nick

Post by willyw »

Fr3aK wrote:Hello,
Is there a command that checks the nick
When? ...
Upon joining a channel?
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 ... mands.html


Something like what you have requested is a good place to start.
It is not long and complicated.

Code: Select all


# 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"

}

F
Fr3aK
Voice
Posts: 4
Joined: Thu Apr 11, 2013 12:09 pm

Post by Fr3aK »

Oh, thank you!
Post Reply