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.

2 beginner questions

Old posts that have not been replied to for several years.
Locked
O
Ovdis
Voice
Posts: 17
Joined: Sun Dec 05, 2004 9:01 am
Location: .lt

2 beginner questions

Post by Ovdis »

1. How to make bot to op users of the channel, not of the bot? Or it is necessary a TCL script for this feature?
2. What is the technique of GREET function? Sometimes it works and sometimes not. User added his info, i entered command .chrec user #channel, i enabled greet function, but when the user rejoins the channel, nothing happens.
Thanks.
User avatar
KrzychuG
Master
Posts: 306
Joined: Sat Aug 16, 2003 2:51 pm
Location: Torun, Poland
Contact:

Post by KrzychuG »

Greet don't react on rejoin to prevent flood, but if user will join channel after some time (about 2 minutes) he wiil be greeted again.
Que?
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Re: 2 beginner questions

Post by ]Kami[ »

Ovdis wrote:1. How to make bot to op users of the channel, not of the bot? Or it is necessary a TCL script for this feature?
2. What is the technique of GREET function? Sometimes it works and sometimes not. User added his info, i entered command .chrec user #channel, i enabled greet function, but when the user rejoins the channel, nothing happens.
Thanks.
1. What you mean with 'users of the channel' ? You can also add user to the bot with only channel autoop flag.
User avatar
arcane
Master
Posts: 280
Joined: Thu Jan 30, 2003 9:18 am
Location: Germany
Contact:

Post by arcane »

i think he means opping by nicks and not by handles :-?
aVote page back online!
Check out the most popular voting script for eggdrop bots.

Join the metal tavern!
User avatar
CrazyCat
Revered One
Posts: 1304
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

Code: Select all

.+user anonymous anon*!*@*
.chattr anonymous +ao #channel
will op everybody named anon* on #channel
(Stupid think, but the only way to not use tcl)

Less stupid: create an "opuser" add him hosts based on nick!*@*

Nicks can easily be stolen
[
[bot-build]
Voice
Posts: 4
Joined: Tue Dec 07, 2004 10:25 pm
Location: Los Angeles,CA
Contact:

Post by [bot-build] »

Or you could simply do the following

1).+user aops
2).+host aops nick*!*@*

All you have to do then to add to that goup is .+host aops nick*!*@*
"I will sleep When I'm Dead"
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Or, on the other hand you can use TCL.
Here are some examples:

Code: Select all

#This small piece of code will only op bot owners when they join a channel.
bind join n "*" op:owner

proc op:owner {nick uhost hand chan} {
 putserv "MODE $chan +o $nick"
}
You can set this to be global or local flags as well, by using variations of flags with:

bind join <flags|flags> "*" op:owner

Code: Select all

#This small piece of code will op all joining a channel users matching the host *!*@*.aol.com
bind join - "*" op:aol:users

proc op:aol:users {nick uhost hand chan} {
 if {([string match "*aol.com*" [lindex [split $uhost @] 1]])} {
 putserv "MODE $chan +o $nick"
 }
}

or it can be like this too:
bind join - "*!*@*.aol.com" op:aol:users

proc op:aol:users {nick uhost hand chan} {
 putserv "MODE $chan +o $nick"
}
So then, we can create multiple binds if you like, with this. For opping the nick 'awyeah' we can use:

bind join - "awyeah!*@*" op:user

Since people can impersonate it would be best to use an ident and even input a class d, c ip range if possible. Here are some examples:

bind join - "awyeah!cool@*" op:user
bind join - "awyeah!cool@202.188.*" op:user
bind join - "awyeah!cool@*.cable.rogers.com" op:user
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Locked