egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AutoDeOP

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
Slaktarn
Halfop


Joined: 02 May 2007
Posts: 44

PostPosted: Mon Apr 16, 2012 5:32 am    Post subject: AutoDeOP Reply with quote

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
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Mon Apr 16, 2012 8:29 am    Post subject: Reply with quote

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
View user's profile Send private message
Slaktarn
Halfop


Joined: 02 May 2007
Posts: 44

PostPosted: Tue Apr 17, 2012 4:08 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber