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.

auto +o from a txt file

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
w
whittinghamj
Op
Posts: 103
Joined: Sun May 21, 2006 4:50 pm

auto +o from a txt file

Post by whittinghamj »

first thing I would like to say, I have been using these boards for around a year now and I would like to express my thanks to everyone who has helped others on these boards. I have been able to take / modife the code posted to suite my needs to a T.

I have a small request, I have tried to do this but failed badly.

I have a txt file which contains the names of staff members in my channel.

The text file is formatted in the following way

nick1
nick2
nick3

and so on. Nothing else, just the persons nick. I am able to add and remove from / to the list via public commands.

The network I am on does NOT have irc services installed nor do they plan on doing so.

What i am looking for / trying to do if have my eggie look at this list and +o the people in that list. I know the bot has to monitor join's and check the $nick part.

The bot has +o

Does any of the above make sence lol, I hope so.

I would be extremly greatful if someone could help with this one please.

Kind regards, god bless and thank you for any help you may be able to offer.

Quest :D
w
whittinghamj
Op
Posts: 103
Joined: Sun May 21, 2006 4:50 pm

Post by whittinghamj »

sorry, forgot to say

text file is located at

/home/f4w/eggdrop/scripts/staff.txt

thank you so very much in advance once again :D

have a blessed day.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

You can add the users to your bot and give them the +o flag (ofcourse the channel has to be set +autoop). Since this is insecure and not recommended, you can alternatively search the TCL archive for an op script, there're a lot of them.
w
whittinghamj
Op
Posts: 103
Joined: Sun May 21, 2006 4:50 pm

Post by whittinghamj »

hi sir_fz

I have been doing it by adding the user to the bot's user file up until now - however, when i add a user i have to be in party line to add them, then I have to set a password as I dont want the user to have ANY access to the party line - but the annoying thing is - even tho i set the password for the user before they get chance to set it, the bot auto pm'd / notices the user to set a a password which i can not have happen.

any suggestions?

Cheers buddy and thank you much for your quick reply :D
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Instead of creating a new handle for every user, you can create 1 handle and add all hosts to it. For example:
.+user ops
.chpass ops sjdfhsdfsd
.chattr ops +o
.+host ops nick1!*@*
.+host ops nick2!*@*
w
whittinghamj
Op
Posts: 103
Joined: Sun May 21, 2006 4:50 pm

Post by whittinghamj »

great idea - then all i would need to is write the public trigger eg !addhost user!*@* :D

then i dont have to have a party line open every time

All i will have to do is add a security setting so i need n in the bot - that would n_o right? or does bind flags go like this

channel|bot or bot|channel ?
w
whittinghamj
Op
Posts: 103
Joined: Sun May 21, 2006 4:50 pm

Post by whittinghamj »

i found a tcl in the tcl downloads section which does exactly what i need called autop nick - thanks for your help sir_fz - your answer also hellped with another project i am working on - cheers bro

have a blessed day.
Post Reply