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 

auto +o from a txt file

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


Joined: 21 May 2006
Posts: 103

PostPosted: Sun May 21, 2006 4:55 pm    Post subject: auto +o from a txt file Reply with quote

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


Joined: 21 May 2006
Posts: 103

PostPosted: Sun May 21, 2006 4:58 pm    Post subject: Reply with quote

sorry, forgot to say

text file is located at

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

thank you so very much in advance once again Very Happy

have a blessed day.
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun May 21, 2006 5:19 pm    Post subject: Reply with quote

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.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
whittinghamj
Op


Joined: 21 May 2006
Posts: 103

PostPosted: Sun May 21, 2006 5:42 pm    Post subject: Reply with quote

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 Very Happy
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun May 21, 2006 5:49 pm    Post subject: Reply with quote

Instead of creating a new handle for every user, you can create 1 handle and add all hosts to it. For example:
Quote:
.+user ops
.chpass ops sjdfhsdfsd
.chattr ops +o
.+host ops nick1!*@*
.+host ops nick2!*@*

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
whittinghamj
Op


Joined: 21 May 2006
Posts: 103

PostPosted: Sun May 21, 2006 6:17 pm    Post subject: Reply with quote

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

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


Joined: 21 May 2006
Posts: 103

PostPosted: Sun May 21, 2006 6:41 pm    Post subject: Reply with quote

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