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.

AutoDeOP

General support and discussion of Eggdrop bots.
Post Reply
S
Slaktarn
Halfop
Posts: 44
Joined: Wed May 02, 2007 1:48 am

AutoDeOP

Post by Slaktarn »

I did a uggly script something like

Code: Select all

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
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Code: Select all

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.
S
Slaktarn
Halfop
Posts: 44
Joined: Wed May 02, 2007 1:48 am

Post by Slaktarn »

caesar wrote:

Code: Select all

proc isAutoDeOP {min hour day month year} {
if {[botonchan "#Channel"]} {
pushmode "#channel" -o $::botnick
}
}
this should work.
It worked just fine thx alot!
Post Reply