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 

really really really simple greet [SOLVED]

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
holycrap
Op


Joined: 21 Jan 2008
Posts: 152

PostPosted: Sat Jul 25, 2009 7:58 am    Post subject: really really really simple greet [SOLVED] Reply with quote

Hi guys.

I’ve searched through the forum and archive but was overwhelmed with all the greet scripts. I’m looking for something really simple.

Three lines, notice the user on join:

Example:

* holycrap has joined #channel
-bot- blah blah blah
-bot- blah blah blah
-bot- hi holycrap welcome

Really appreciated for all the help!
Very Happy


Last edited by holycrap on Sat Jul 25, 2009 12:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
tueb
Halfop


Joined: 04 Oct 2007
Posts: 76
Location: #quiz.de @ irc.gamesurge.net

PostPosted: Sat Jul 25, 2009 9:09 am    Post subject: Reply with quote

Code:
bind join - * tueb_on_joined
proc tueb_on_joined {nick host handle channel} {
  set greeting "hi $nick welcome"
  puthelp "PRIVMSG $channel :$greeting"
}


hi,

this should do the trick


change "hi $nick welcome" to the greeting you like. use $nick for the nick of the joining user and $channel for the channelname where the user joined.


tueb
_________________
#Quiz.de @ irc.GameSurge.net
JavaChat
Back to top
View user's profile Send private message Visit poster's website
holycrap
Op


Joined: 21 Jan 2008
Posts: 152

PostPosted: Sat Jul 25, 2009 10:24 am    Post subject: Reply with quote

tueb wrote:
Code:
bind join - * tueb_on_joined
proc tueb_on_joined {nick host handle channel} {
  set greeting "hi $nick welcome"
  puthelp "PRIVMSG $channel :$greeting"
}


hi,

this should do the trick


change "hi $nick welcome" to the greeting you like. use $nick for the nick of the joining user and $channel for the channelname where the user joined.


tueb


Thanks tueb! Sorry, but I'm a bit confused, so how do I get multiple lines? Like the three that I wanted?

Very Happy
Back to top
View user's profile Send private message
tueb
Halfop


Joined: 04 Oct 2007
Posts: 76
Location: #quiz.de @ irc.gamesurge.net

PostPosted: Sat Jul 25, 2009 10:32 am    Post subject: Reply with quote

oh, i missunderstood that.

Code:
bind join - * tueb_on_joined
proc tueb_on_joined {nick host handle channel} {
 
  set line_one "blah blah blah 1"
  set line_two "blah blah blah 2"
  set greeting "hi $nick welcome"
 
  puthelp "PRIVMSG $channel :$line_one"
  puthelp "PRIVMSG $channel :$line_two"
  puthelp "PRIVMSG $channel :$greeting"

}


this will print 3 lines
_________________
#Quiz.de @ irc.GameSurge.net
JavaChat
Back to top
View user's profile Send private message Visit poster's website
holycrap
Op


Joined: 21 Jan 2008
Posts: 152

PostPosted: Sat Jul 25, 2009 10:35 am    Post subject: Reply with quote

So, if I wanted to notice the user on join, I would do this?

"NOTICE $nick .... " ?
Back to top
View user's profile Send private message
tueb
Halfop


Joined: 04 Oct 2007
Posts: 76
Location: #quiz.de @ irc.gamesurge.net

PostPosted: Sat Jul 25, 2009 10:39 am    Post subject: Reply with quote

yes
_________________
#Quiz.de @ irc.GameSurge.net
JavaChat
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests 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