View previous topic :: View next topic |
Author |
Message |
Clowrid Voice
Joined: 15 Dec 2013 Posts: 3
|
Posted: Sun Dec 15, 2013 5:52 am Post subject: Autoop - Password |
|
|
Hello everyone,
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  |
|
Back to top |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1169
|
|
Back to top |
|
 |
Clowrid Voice
Joined: 15 Dec 2013 Posts: 3
|
Posted: Sun Dec 15, 2013 1:36 pm Post subject: |
|
|
Thank you very much willyw, I will look at it carefully  |
|
Back to top |
|
 |
Sane Voice
Joined: 17 Nov 2013 Posts: 19 Location: #kl-channel@Rizon.net
|
Posted: Mon Dec 16, 2013 7:40 pm Post subject: Re: Autoop - Password |
|
|
Clowrid wrote: | Hello everyone,
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. |
|
Back to top |
|
 |
play4free2 Voice

Joined: 23 Nov 2013 Posts: 33
|
Posted: Mon Dec 16, 2013 10:48 pm Post subject: |
|
|
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.
Code: | #####################################
#
# 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. _________________
420-HIGHTIMES IRC Network
Last edited by play4free2 on Wed Nov 11, 2020 5:12 pm; edited 5 times in total |
|
Back to top |
|
 |
Clowrid Voice
Joined: 15 Dec 2013 Posts: 3
|
Posted: Wed Dec 18, 2013 1:21 pm Post subject: Re: Autoop - Password |
|
|
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 |
|
Back to top |
|
 |
play4free2 Voice

Joined: 23 Nov 2013 Posts: 33
|
Posted: Wed Dec 18, 2013 8:29 pm Post subject: Re: Autoop - Password |
|
|
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. _________________
420-HIGHTIMES IRC Network |
|
Back to top |
|
 |
|