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 

Greet owners

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


Joined: 02 Sep 2006
Posts: 124
Location: Ottawa, Canada

PostPosted: Sat Sep 05, 2009 3:50 am    Post subject: Greet owners Reply with quote

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
View user's profile Send private message Yahoo Messenger MSN Messenger
TCL_no_TK
Owner


Joined: 25 Aug 2006
Posts: 509
Location: England, Yorkshire

PostPosted: Sat Sep 05, 2009 6:08 am    Post subject: Reply with quote

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 Smile its worth playing round it. If your interested in the greet sys Idea
_________________
TCL the misunderstood
Back to top
View user's profile Send private message Send e-mail
Thanhas
Op


Joined: 02 Sep 2006
Posts: 124
Location: Ottawa, Canada

PostPosted: Mon Sep 14, 2009 6:26 am    Post subject: Reply with quote

hello thanks

but this dose not help me
i need some TCL if there is someone who can write for me?
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
WisH-GR
Voice


Joined: 17 Aug 2009
Posts: 9

PostPosted: Mon Sep 14, 2009 8:59 pm    Post subject: Reply with quote

why ask for a TCL when teh eggdrop can greet each user seperately?
Back to top
View user's profile Send private message
Thanhas
Op


Joined: 02 Sep 2006
Posts: 124
Location: Ottawa, Canada

PostPosted: Mon Sep 14, 2009 11:10 pm    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger MSN Messenger
Callisto
Halfop


Joined: 13 Mar 2005
Posts: 86

PostPosted: Tue Sep 15, 2009 7:25 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Thanhas
Op


Joined: 02 Sep 2006
Posts: 124
Location: Ottawa, Canada

PostPosted: Tue Sep 15, 2009 2:21 pm    Post subject: Reply with quote

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 Smile

there you go with code "Smile

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
View user's profile Send private message Yahoo Messenger MSN Messenger
arfer
Master


Joined: 26 Nov 2004
Posts: 436
Location: Manchester, UK

PostPosted: Tue Sep 15, 2009 7:49 pm    Post subject: Reply with quote

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


Joined: 02 Sep 2006
Posts: 124
Location: Ottawa, Canada

PostPosted: Wed Sep 16, 2009 5:41 am    Post subject: Reply with quote

i accept thank you again.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
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