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.

request admin and or op stats

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
t
testebr
Halfop
Posts: 86
Joined: Thu Dec 01, 2005 12:22 pm

request admin and or op stats

Post by testebr »

Hi,

In my channel I disabled the autoop/admin (IrcHighWay) and if my bot left and back later he never get the admin status again.

How to I can do to my bot request admin status to chanserv on joined the channel?

Thank you
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

Since you are not very clear about what exactly it is that you need the bot to do, I suggest you alter this default script found in your conf file to suit your needs.

Code: Select all

bind evnt - init-server evnt:init_server

proc evnt:init_server {type} {
  global botnick
  putquick "MODE $botnick +i-ws"
}
If you need more help, you will need to be much more specific about what you require.
t
testebr
Halfop
Posts: 86
Joined: Thu Dec 01, 2005 12:22 pm

Post by testebr »

Thank you YooHoo. Sorry about my poor explanation.

In my channel at irchighway network I just disabled the autoop and autoadmin in chanserv (/chanserv levels #zegames disable autoadmin ....). Users in access list never get op and admin status automatically by chanserv.

Then, I want that my bot auto get admin and op status when it joined the channel. Because many times the bot lost connection and when it back never get admin and op status itself.

sorry my poor english
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

I use a script that i wrote to do something simlar to this for one of my bots. I may be able to adapt it for you to use, if would like to give it a try. I only need to know how the bot would get op/admin status from the services on the network?
t
testebr
Halfop
Posts: 86
Joined: Thu Dec 01, 2005 12:22 pm

Post by testebr »

Nice TCL_no_TK, share with us. Here the chanserv commands:

admin:

Code: Select all

chanserv admin #channel nick
op:

Code: Select all

chanserv op #channel nick
Thank you
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

Try:

Code: Select all

bind need - {#mychannel *} proc:need

proc proc:need {channel type} {
    global botnick
    if {$type == "op"} {
        putquick "PRIVMSG chanserv :admin $channel $botnick"
        return 1
    }
}
r0t3n @ #r0t3n @ Quakenet
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

t
testebr
Halfop
Posts: 86
Joined: Thu Dec 01, 2005 12:22 pm

Post by testebr »

Tosser^^ wrote:Try:

Code: Select all

bind need - {#mychannel *} proc:need

proc proc:need {channel type} {
    global botnick
    if {$type == "op"} {
        putquick "PRIVMSG chanserv :admin $channel $botnick"
        return 1
    }
}
Thanks a lot man, work like an charm ;)
Post Reply