| View previous topic :: View next topic |
| Author |
Message |
testebr Halfop
Joined: 01 Dec 2005 Posts: 86
|
Posted: Sat Dec 29, 2007 7:22 pm Post subject: request admin and or op stats |
|
|
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 |
|
| Back to top |
|
 |
YooHoo Owner

Joined: 13 Feb 2003 Posts: 939 Location: Redwood Coast
|
Posted: Sun Dec 30, 2007 8:35 pm Post subject: |
|
|
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: | 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. _________________
Johoho's TCL for beginners
 |
|
| Back to top |
|
 |
testebr Halfop
Joined: 01 Dec 2005 Posts: 86
|
Posted: Sun Dec 30, 2007 9:02 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
TCL_no_TK Owner

Joined: 25 Aug 2006 Posts: 509 Location: England, Yorkshire
|
Posted: Mon Dec 31, 2007 10:10 am Post subject: |
|
|
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? _________________ TCL the misunderstood |
|
| Back to top |
|
 |
testebr Halfop
Joined: 01 Dec 2005 Posts: 86
|
Posted: Mon Dec 31, 2007 4:46 pm Post subject: |
|
|
Nice TCL_no_TK, share with us. Here the chanserv commands:
admin:
| Code: | | chanserv admin #channel nick |
op:
| Code: | | chanserv op #channel nick |
Thank you |
|
| Back to top |
|
 |
r0t3n Owner
Joined: 31 May 2005 Posts: 507 Location: UK
|
Posted: Mon Dec 31, 2007 6:47 pm Post subject: |
|
|
Try:
| Code: | 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 |
|
| Back to top |
|
 |
TCL_no_TK Owner

Joined: 25 Aug 2006 Posts: 509 Location: England, Yorkshire
|
|
| Back to top |
|
 |
testebr Halfop
Joined: 01 Dec 2005 Posts: 86
|
Posted: Tue Jan 01, 2008 3:11 pm Post subject: |
|
|
| Tosser^^ wrote: | Try:
| Code: | 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  |
|
| Back to top |
|
 |
|