| View previous topic :: View next topic |
| Author |
Message |
Thanhas Op

Joined: 02 Sep 2006 Posts: 124 Location: Ottawa, Canada
|
Posted: Sat Sep 05, 2009 3:50 am Post subject: Greet owners |
|
|
Hello,
may i have some TCL or code which only greets the Owners and selctive People added by Owner !addgreet Nick Msg
Thank you |
|
| Back to top |
|
 |
TCL_no_TK Owner

Joined: 25 Aug 2006 Posts: 509 Location: England, Yorkshire
|
Posted: Sat Sep 05, 2009 6:08 am Post subject: |
|
|
Wouldn't eggdrop's greet system already do this? | Quote: | <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: | # 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  _________________ TCL the misunderstood |
|
| Back to top |
|
 |
Thanhas Op

Joined: 02 Sep 2006 Posts: 124 Location: Ottawa, Canada
|
Posted: Mon Sep 14, 2009 6:26 am Post subject: |
|
|
hello thanks
but this dose not help me
i need some TCL if there is someone who can write for me? |
|
| Back to top |
|
 |
WisH-GR Voice
Joined: 17 Aug 2009 Posts: 9
|
Posted: Mon Sep 14, 2009 8:59 pm Post subject: |
|
|
| why ask for a TCL when teh eggdrop can greet each user seperately? |
|
| Back to top |
|
 |
Thanhas Op

Joined: 02 Sep 2006 Posts: 124 Location: Ottawa, Canada
|
Posted: Mon Sep 14, 2009 11:10 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
Callisto Halfop
Joined: 13 Mar 2005 Posts: 86
|
|
| Back to top |
|
 |
Thanhas Op

Joined: 02 Sep 2006 Posts: 124 Location: Ottawa, Canada
|
Posted: Tue Sep 15, 2009 2:21 pm Post subject: |
|
|
| 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 "
| Quote: | bind JOIN - * pJoinProc
proc pJoinProc {nick uhost hand chan} {
if {[matchattr [nick2hand $nick] n]} {
putserv "PRIVMSG $chan :hello $nick"
}
} |
Thanks to arfer |
|
| Back to top |
|
 |
arfer Master

Joined: 26 Nov 2004 Posts: 436 Location: Manchester, UK
|
Posted: Tue Sep 15, 2009 7:49 pm Post subject: |
|
|
I'd rather not take credit for that because
| Code: |
if {[matchattr [nick2hand $nick] n]} {
# code
}
|
Could be more simply written
| Code: |
if {[matchattr $hand n]} {
# code
}
|
See what nonsense I compose when folk are pestering me! _________________ I must have had nothing to do |
|
| Back to top |
|
 |
Thanhas Op

Joined: 02 Sep 2006 Posts: 124 Location: Ottawa, Canada
|
Posted: Wed Sep 16, 2009 5:41 am Post subject: |
|
|
| i accept thank you again. |
|
| Back to top |
|
 |
|