Feanixxx Voice
Joined: 27 Jul 2003 Posts: 23
|
Posted: Wed Dec 31, 2003 5:54 am Post subject: How to make eggdrop ask for ops from psyBnc |
|
|
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: |
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  |
|