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 

Autoop - Password

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Modules & Programming
View previous topic :: View next topic  
Author Message
Clowrid
Voice


Joined: 15 Dec 2013
Posts: 3

PostPosted: Sun Dec 15, 2013 5:52 am    Post subject: Autoop - Password Reply with quote

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


Joined: 15 Jan 2009
Posts: 973

PostPosted: Sun Dec 15, 2013 10:51 am    Post subject: Re: Autoop - Password Reply with quote

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. Smile

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


Joined: 15 Dec 2013
Posts: 3

PostPosted: Sun Dec 15, 2013 1:36 pm    Post subject: Reply with quote

Thank you very much willyw, I will look at it carefully Smile
Back to top
View user's profile Send private message
Sane
Voice


Joined: 17 Nov 2013
Posts: 19
Location: #kl-channel@Rizon.net

PostPosted: Mon Dec 16, 2013 7:40 pm    Post subject: Re: Autoop - Password Reply with quote

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 Smile


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
View user's profile Send private message
play4free2
Voice


Joined: 23 Nov 2013
Posts: 23

PostPosted: Mon Dec 16, 2013 10:48 pm    Post subject: Reply with quote

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-mafia.org #MaFia-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 Dec 16, 2015 6:17 pm; edited 3 times in total
Back to top
View user's profile Send private message Visit poster's website
Clowrid
Voice


Joined: 15 Dec 2013
Posts: 3

PostPosted: Wed Dec 18, 2013 1:21 pm    Post subject: Re: Autoop - Password Reply with quote

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 Smile 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
View user's profile Send private message
play4free2
Voice


Joined: 23 Nov 2013
Posts: 23

PostPosted: Wed Dec 18, 2013 8:29 pm    Post subject: Re: Autoop - Password Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Modules & Programming 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