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.

Autoop - Password

Discussion of Eggdrop's code and module programming in C.
Post Reply
C
Clowrid
Voice
Posts: 3
Joined: Sun Dec 15, 2013 5:43 am

Autoop - Password

Post by Clowrid »

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 :)
w
willyw
Revered One
Posts: 1196
Joined: Thu Jan 15, 2009 12:55 am

Re: Autoop - Password

Post by willyw »

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.

See:
http://www.egghelp.org/commands/irc.htm#msg_op

There are a LOT of commands described on those pages, that you can use to manipulate your Eggdrop. Explore them. :)

Here are some more that might help with your current request:

http://www.egghelp.org/commands/irc.htm#msg_help
http://www.egghelp.org/commands/irc.htm#msg_pass
http://www.egghelp.org/commands/core.htm#whois

http://www.egghelp.org/commands/irc.htm#adduser
http://www.egghelp.org/commands/core.htm#chattr



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 hope this helps.
C
Clowrid
Voice
Posts: 3
Joined: Sun Dec 15, 2013 5:43 am

Post by Clowrid »

Thank you very much willyw, I will look at it carefully :)
S
Sane
Voice
Posts: 19
Joined: Sun Nov 17, 2013 12:38 am
Location: #kl-channel@Rizon.net

Re: Autoop - Password

Post by Sane »

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.
User avatar
play4free2
Voice
Posts: 34
Joined: Sat Nov 23, 2013 1:42 am
Contact:

Post by play4free2 »

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: Select all

#####################################
#
# 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.
Image
420-HIGHTIMES IRC Network
C
Clowrid
Voice
Posts: 3
Joined: Sun Dec 15, 2013 5:43 am

Re: Autoop - Password

Post by Clowrid »

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
User avatar
play4free2
Voice
Posts: 34
Joined: Sat Nov 23, 2013 1:42 am
Contact:

Re: Autoop - Password

Post by play4free2 »

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.
Image
420-HIGHTIMES IRC Network
Post Reply