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.

Greet owners

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
User avatar
Thanhas
Op
Posts: 124
Joined: Sat Sep 02, 2006 11:14 am
Location: Ottawa, Canada

Greet owners

Post by Thanhas »

Hello,

may i have some TCL or code which only greets the Owners and selctive People added by Owner !addgreet Nick Msg

Thank you
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

Wouldn't eggdrop's greet system already do this?
<Owner> .help info
<Bot> [10:01] #Owner# help info
<Bot> ### info [channel] [info-line]
<Bot> Sets your info line. This line is shown via the /msg commands 'who' and
<Bot> 'whois'. If you have set greet on, it is also shown when you joins the
<Bot> channel. If the info line begins with an '@', then it is "locked", and tou
<Bot> may no longer change it.
<Bot> See also: chinfo
<Owner> .help chinfo
<Bot> [10:01] #Owner# help chinfo
<Bot> ### chinfo <user> [channel] [info-line/none]
<Bot> Sets the information line for a user. This line is shown via the /msg
<Bot> commands 'who' and 'whois'. If you have set greet on, it is also
<Bot> shown when the user joins the channel. If the info line begins with an '@',
<Bot> then it is "locked", and that user may no longer change it. If the channel
<Bot> name is omitted, the default info line is changed. If you specify 'none'
<Bot> as the info-line, it will be erased.
<Bot>
<Bot> See also: info
And make sure that all the channels you want a greeting for a user that has one displayed in the channel when they join are set to +greet (all are by default).
Relivant greet settings from eggdrop config file:

Code: Select all

# Set this setting to 1 if you want your bot to share user greets with other
# bots on the channel if sharing user data.
set share-greet 0

# Set this setting to 1 if you want to allow users to store an info line.
set use-info 1

# Set here the time (in seconds) that someone must have been off-channel
# before re-displaying their info line.
set wait-info 180

# If you are so lame you want the bot to display peoples info lines, even
# when you are too lazy to add their chanrecs to a channel, set this to 1.
# *NOTE* This means *every* user with an info line will have their info
# line displayed on EVERY channel they join (provided they have been gone
# longer than wait-info).
set no-chanrec-info 0

# Enable this setting if a user's global info line should be displayed
# when they join a botnet channel.
set info-party 0
You can have differant greets for differant channels, the same greet for all channels (global) ..etc :) its worth playing round it. If your interested in the greet sys :idea:
User avatar
Thanhas
Op
Posts: 124
Joined: Sat Sep 02, 2006 11:14 am
Location: Ottawa, Canada

Post by Thanhas »

hello thanks

but this dose not help me
i need some TCL if there is someone who can write for me?
W
WisH-GR
Voice
Posts: 9
Joined: Mon Aug 17, 2009 4:43 am

Post by WisH-GR »

why ask for a TCL when teh eggdrop can greet each user seperately?
User avatar
Thanhas
Op
Posts: 124
Joined: Sat Sep 02, 2006 11:14 am
Location: Ottawa, Canada

Post by Thanhas »

hello

okey give me exact example i dont get all this so if you give one Example

use nick Jhala With Greet msg Hello Boss Welcome in in Example
C
Callisto
Halfop
Posts: 86
Joined: Sun Mar 13, 2005 11:04 am

Post by Callisto »

http://www.egghelp.org/tclhtml/348-4-0-0-1-greet.htm

Pick one that is close to what you want and tweak it to your needs.

Good luck
User avatar
Thanhas
Op
Posts: 124
Joined: Sat Sep 02, 2006 11:14 am
Location: Ottawa, Canada

Post by Thanhas »

Callisto wrote:http://www.egghelp.org/tclhtml/348-4-0-0-1-greet.htm

Pick one that is close to what you want and tweak it to your needs.

Good luck

Thanks but i have checked there and then i came to the Poste area :)

there you go with code ":)
bind JOIN - * pJoinProc
proc pJoinProc {nick uhost hand chan} {
if {[matchattr [nick2hand $nick] n]} {
putserv "PRIVMSG $chan :hello $nick"
}
}

Thanks to arfer
User avatar
arfer
Master
Posts: 436
Joined: Fri Nov 26, 2004 8:45 pm
Location: Manchester, UK

Post by arfer »

I'd rather not take credit for that because

Code: Select all

if {[matchattr [nick2hand $nick] n]} {
  # code
}
Could be more simply written

Code: Select all

if {[matchattr $hand n]} {
  # code
}
See what nonsense I compose when folk are pestering me!
I must have had nothing to do
User avatar
Thanhas
Op
Posts: 124
Joined: Sat Sep 02, 2006 11:14 am
Location: Ottawa, Canada

Post by Thanhas »

i accept thank you again.
Post Reply