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.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
illusionist
Voice
Posts: 25 Joined: Mon Mar 09, 2020 11:22 am
Post
by illusionist » Sun Aug 29, 2021 12:53 am
Hello everyone
.
I'm here to request A Script for eggdrop...
Bot op himself if deopd after a specific Time which is set.
Any suggestions
Solutions ...
Pleased
CrazyCat
Revered One
Posts: 1277 Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:
Post
by CrazyCat » Sun Aug 29, 2021 4:07 am
Something like:
Code: Select all
# delay in seconds
set opdelay 60
bind mode - * deopped
proc deopped {nick uhost hand chan mode target} {
if {$mode eq "-o" && [isbotnick $target]} {
after [expr {$::opdelay * 1000}] [list putserv "MODE $chan +o $::botnick"]
}
}
caesar
Mint Rubber
Posts: 3776 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Sun Aug 29, 2021 2:40 pm
Isn't after a synchronous process? I mean won't it block until after is processed?
Once the game is over, the king and the pawn go back in the same box.
CrazyCat
Revered One
Posts: 1277 Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:
Post
by CrazyCat » Sun Aug 29, 2021 3:08 pm
I alway confuse with vwait.
But it could be done using timer too
illusionist
Voice
Posts: 25 Joined: Mon Mar 09, 2020 11:22 am
Post
by illusionist » Tue Aug 31, 2021 1:44 am
Hello everyone ...
Thanks CraZyCat For responding ...
I Tried That above mentioned code ... But nothing happened... No response fom bot ... No error ..
CrazyCat
Revered One
Posts: 1277 Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:
Post
by CrazyCat » Tue Aug 31, 2021 6:17 am
Tested, it works.
Code: Select all
12:13:18 -- Mode #raspfr [-o Raspdrop] par CrazyCat
#PartyLine [12:13] triggering bind deopped
12:14:19 -- Mode #raspfr [+o Raspdrop] par Raspdrop
The only thing you have to adapt is the way you op the eggdrop. In my case, Raspdrop is ircop so it can override.
Change the
MODE $chan +o $::botnick (which is an example) with something working, like
MSG ChanServ :op $chan $::botnick