egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

On nick

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Fr3aK
Voice


Joined: 11 Apr 2013
Posts: 4

PostPosted: Tue Jul 30, 2013 2:36 pm    Post subject: On nick Reply with quote

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
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Tue Jul 30, 2013 3:52 pm    Post subject: Re: On nick Reply with quote

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
View user's profile Send private message
Fr3aK
Voice


Joined: 11 Apr 2013
Posts: 4

PostPosted: Wed Jul 31, 2013 4:01 am    Post subject: Reply with quote

Oh, thank you!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber