| View previous topic :: View next topic |
| Author |
Message |
whittinghamj Op
Joined: 21 May 2006 Posts: 103
|
Posted: Sun May 21, 2006 4:55 pm Post subject: auto +o from a txt file |
|
|
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  |
|
| Back to top |
|
 |
whittinghamj Op
Joined: 21 May 2006 Posts: 103
|
Posted: Sun May 21, 2006 4:58 pm Post subject: |
|
|
sorry, forgot to say
text file is located at
/home/f4w/eggdrop/scripts/staff.txt
thank you so very much in advance once again
have a blessed day. |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun May 21, 2006 5:19 pm Post subject: |
|
|
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 |
|
 |
whittinghamj Op
Joined: 21 May 2006 Posts: 103
|
Posted: Sun May 21, 2006 5:42 pm Post subject: |
|
|
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  |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun May 21, 2006 5:49 pm Post subject: |
|
|
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 |
|
 |
whittinghamj Op
Joined: 21 May 2006 Posts: 103
|
Posted: Sun May 21, 2006 6:17 pm Post subject: |
|
|
great idea - then all i would need to is write the public trigger eg !addhost user!*@*
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 |
|
 |
whittinghamj Op
Joined: 21 May 2006 Posts: 103
|
Posted: Sun May 21, 2006 6:41 pm Post subject: |
|
|
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 |
|
 |
|