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.

Need Some Help

Old posts that have not been replied to for several years.
Locked
W
WeAz

Need Some Help

Post by WeAz »

Hi all - I'm rather new to all this so bear with me if it seems like I don't know everything.

I'm looking for a script that make my bot auto-op or auto-halfop a person based on a tag they are wearing. For instance:

A|User has joined the channel
Bot sets mode: +o A|User

The goal here is to op someone with the tag A|

B|User has joined the channel
Bot sets mode: +h B|User

The goal here is to halfop someone with the tag B|

User has joined the channel
Bot sets mode: +v User

The goal here is to voice anyone else who joins the channel

Does anyone know of a script like this or how I could make one?

Thanks,
-WeAz
User avatar
arcane
Master
Posts: 280
Joined: Thu Jan 30, 2003 9:18 am
Location: Germany
Contact:

Post by arcane »

this is an easy one. you just need a JOIN bind and then a string match "A|*" $nick.
but i would not advise you to use such a script. imagine what a user can do with op status. changing your nick to A|something is quite easy. as an improvement you could add a check for the user's hostmask.
aVote page back online!
Check out the most popular voting script for eggdrop bots.

Join the metal tavern!
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

add A|*!*@* host to a specific user. then give it +v flag or +h ...+o

see .help chanset to let it autovoice autoop or autohalfop them.

but as arcane said its not safe.
User avatar
Dedan
Master
Posts: 260
Joined: Wed Jul 09, 2003 10:50 pm
Location: Memphis

Post by Dedan »

WeAz, eggdrop has already done the work for you.
You need to set the rooms and people to the proper settings.

ok, lets set the channel settings:

# autoop
# Op users with the +o flag as soon as they join the channel?
# This is insecure and not recommended.
#
# autohalfop
# Halfop users with the +l flag as soon as they join the channel?
#

Code: Select all

# you need to set these settings in your conf file

channel add #botcentral {
  chanmode "+nt"
  flood-ctcp 3:60
  flood-nick 5:30
}

channel set #botcentral +autoop +autohalfop +userbans -greet

now for the users:

#[add a new user]
# adduser <handle> [hostmask]
# Description: creates a new user entry with the handle and hostmask given (with no password and the default flags)
# Returns: 1 if successful; 0 if the handle already exists

Code: Select all

#You need to set these settings from the console

.adduser <handle> [hostmask]

#[change flags]
# chattr <handle> [changes [channel]]
# Description: changes the attributes for a user record, if you include any. Changes are of the form '+f', '-o', '+dk', '-o+d', etc. If changes are specified in the format of | , the channel-specific flags for that channel are altered. You can now use the +o|-o #channel format here too.
# Returns: new flags for the user (if you made no changes, the current flags are returned). If a channel was specified, the global AND the channel-specific flags for that channel are returned in the format of globalflags|channelflags. "*" is returned if the specified user does not exist

Code: Select all

#You need to set these settings from the console

.chattr <handle> +o [channel]

.chattr <handle> +l [channel]

extra Info:

# userbans
# Allow bans to be made by other users on the channel
#
# greet
# Say a user's info line when they join the channel?(this can get annoying)

Code: Select all

Note:all this information was found in the eggdrop conf file and the doc dir

I once was an intelligent young man, now i am old and i can not remember who i was.
Locked