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.

How to make eggdrop ask for ops from psyBnc

Old posts that have not been replied to for several years.
Locked
F
Feanixxx
Voice
Posts: 23
Joined: Sun Jul 27, 2003 11:30 am

How to make eggdrop ask for ops from psyBnc

Post by Feanixxx »

The following is handy if you are on IRC via psyBnc and want your bot to ask the bouncer for ops when it joins a channel (if it pings out, say):

First, make a little script with the following lines and place it in the scripts folder (I called it bncop.tcl):

Code: Select all

bind need - "% op" Need_Ops

proc Need_Ops {chan type} {
 putserv "PRIVMSG YourNick :op password $chan"
}
Change YourNick to the nick of your bouncer; password to a password of your choice.

Add this script to either the scripts section of the bots config file or to the end of netset.tcl if running netbots (via set nb_component(bncop) 1).


Next, add the bot to the ASKOP list in psyBNC with this command:

/ADDOP #MyChannel password:*!MyBot@my.host.com

changing #MyChannel, password and MyBot@my.host.com as required (passwords must match, of course!)

Note that you can leave out #MyChannel and it will work on all channels the bot joins where your bouncer resides.

You can get a list of bots/users that can ask for ops from the bouncer with:
/LISTOPS


I've received several mails about how to do the above, so hope post helps. It should work for any bouncer that allows users to ask for ops but the syntax of the ADDASK command may well differ, of course.

Happy New Year everyone :D
Locked