| View previous topic :: View next topic |
| Author |
Message |
Slaktarn Halfop
Joined: 02 May 2007 Posts: 44
|
Posted: Mon Apr 16, 2012 5:32 am Post subject: AutoDeOP |
|
|
I did a uggly script something like
| Code: |
proc isAutoDeOP {min hour day month year} {
if {[onchan "BOT" "#Channel"]} {
".deop #Channel -o BOT"
}
}
|
Im not sure if this work as i donīt got it working, but if i do samething on Telnet it says "I'm not going to deop myself." are it anyway to pass this and allow the BOT to DEOP itself
/Thx Slaktarn |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Mon Apr 16, 2012 8:29 am Post subject: |
|
|
| Code: |
proc isAutoDeOP {min hour day month year} {
if {[botonchan "#Channel"]} {
pushmode "#channel" -o $::botnick
}
}
|
this should work. _________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
Slaktarn Halfop
Joined: 02 May 2007 Posts: 44
|
Posted: Tue Apr 17, 2012 4:08 am Post subject: |
|
|
| caesar wrote: | | Code: |
proc isAutoDeOP {min hour day month year} {
if {[botonchan "#Channel"]} {
pushmode "#channel" -o $::botnick
}
}
|
this should work. |
It worked just fine thx alot! |
|
| Back to top |
|
 |
|