If you use Eggdrop's built in capability to maintain a list of users, with individual flags for each user, then each user will have a specific word with which they could op themselves.... their password that they set in the bot.
Side note:
This area of the forum is for discussion of Modules and Programming.
Go here: http://forum.egghelp.org/
to see all the forum areas.
A question like this would probably be better in, "Eggdrop Help" .
I apologize if my English is not very good. I'll try anyway to explain my problem.
I would make with my eggdrop to "autoop" a person on a channel if this person told me a specific word in query. Is this possible? If so, how?
An exemple (with "moon" as the specific word )
(in query)<guest1> moon
(on a #chan) /mode #chan +o guest1
Thanking you in advance for your help
Just to clarify something: Your eggdrop bot would NOT know if and when YOU 'Clowrid' received the query "moon" from another user. They would have to query/PM the bot instead, not you.
Not sure this is what you are looking for but I just put this together. What it does is give channel ops to anyone that knows the password you have given them and they have to query the password to the bot.
#####################################
#
# Discription: Gives channel Ops @
# to any user that has the password.
#
# To use Type: /msg botnick password
#
#####################################
#Begin setup
#Put your password for users to get channel Ops here
set oppass "password"
#Put the channel you want the bot to set users Ops in here
set oppasschan "#channel"
#End setup
#Don't edit anything below here
bind msg - "$oppass" oppassmsg
proc oppassmsg {nick uhost hand chan} {
global oppasschan
if {[botisop $oppasschan]} {
putquick "MODE $oppasschan +o $nick"
}
}
putlog "Channel Ops via password v1.00 by: play4free2 irc.420-hightimes.com #HighTimes-Lounge loaded!"
Hope this helps
Edit:
I just read Sane's comment and he is correct the message "as it does in this code" needs to go to the bot.
However you could write an addon for your mIRC client that when a user messages you a password, you query the bot via the addon and the bot Ops the user.
Last edited by play4free2 on Wed Nov 11, 2020 5:12 pm, edited 5 times in total.
Sane wrote:
Just to clarify something: Your eggdrop bot would NOT know if and when YOU 'Clowrid' received the query "moon" from another user. They would have to query/PM the bot instead, not you.
Sure, thank you for the clarification This is actually what I want it to do.
Sane wrote:
Not sure this is what you are looking for but I just put this together.
It sounds great! Where do I put this code?
Thank you sincerely for your help, it's nice to see a community that helps each other
Just save the code to a file called oppass.tcl and put it into your bots scripts folder. Then add the line source scripts/oppass.tcl to the bots main config file and rehash your bot.