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!
m4s
Halfop
Posts: 97 Joined: Mon Jan 30, 2017 3:24 pm
Post
by m4s » Thu Apr 02, 2020 2:19 am
Hi all,
Can someone pls write a script which watches the idle time of the channel (configured in the script in min) and if this time passed the bot randomly chooses a sentence from a txt file and send it to the channel.
In this txt we might use actions as well (\001ACTION blalalabla).
The script should be on/off with a flag via DCC.
Thanks in advance!
CrazyCat
Revered One
Posts: 1304 Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:
Post
by CrazyCat » Thu Apr 02, 2020 2:39 am
You can have an eye on
Reanimator made by MenzAgitat.
Explanations are in french, sorry.
m4s
Halfop
Posts: 97 Joined: Mon Jan 30, 2017 3:24 pm
Post
by m4s » Thu Apr 02, 2020 1:50 pm
CrazyCat wrote: You can have an eye on
Reanimator made by MenzAgitat.
Explanations are in french, sorry.
Thank you CrazyCat, I tried the script but I got a strange error msg:
"[Reanimator - Error] The version of your Eggdrop is 1.8.4 1080404; Reanimator will only work correctly on Eggdrops version 1.6.20 or higher."
Translation is made by google translate. I don't speak French.
CrazyCat
Revered One
Posts: 1304 Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:
Post
by CrazyCat » Tue Apr 14, 2020 3:32 am
This is a weel known trouble, you can easily correct it
Find the line containing:
Code: Select all
if { [regsub -all {\.} [lindex $::version 0] ""] < 1620 }
Replace this previous code with:
Code: Select all
if { [package vcompare [regexp -inline {^[[:digit:]\.]+} $::version] 1.6.20] == -1 }
Fahad
Op
Posts: 129 Joined: Mon Aug 29, 2016 9:40 am
Post
by Fahad » Tue Apr 21, 2020 9:22 am
This script is in French Lang I guess. English not Available?
ComputerTech
Master
Posts: 399 Joined: Sat Feb 22, 2020 10:29 am
Contact:
Post
by ComputerTech » Tue Apr 21, 2020 9:44 am
i can translate it will do it in a few
i will give you a english version
ComputerTech
Fahad
Op
Posts: 129 Joined: Mon Aug 29, 2016 9:40 am
Post
by Fahad » Tue Apr 21, 2020 10:20 am
ComputerTech wrote: i can translate it will do it in a few
i will give you a english version
Please Do
m4s
Halfop
Posts: 97 Joined: Mon Jan 30, 2017 3:24 pm
Post
by m4s » Wed Apr 22, 2020 2:33 pm
CrazyCat wrote: This is a weel known trouble, you can easily correct it
Find the line containing:
Code: Select all
if { [regsub -all {\.} [lindex $::version 0] ""] < 1620 }
Hello CrazyCat,
I cant find this line in my script.
I have v1.2 You can check it here:
https://pastebin.com/U9Gb9Nr2
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Wed Apr 22, 2020 2:58 pm
Line 97 you got this:
Code: Select all
if { [join [split [::tcl::string::range [lindex $version 0] 0 5] "."] ""] < 1620 } { putloglev o * "\00304\002\[Reanimator - Erreur\]\002\003 La version de votre Eggdrop est \00304\002$version\002\003; Reanimator ne fonctionnera correctement que sur les Eggdrops version 1.6.20 ou sup�rieure." ; return }
but it's different.
@CrazyCat Why don't you go with something simple like:
Code: Select all
if {[catch {package require "eggdrop 1.6.20"} err]} {
# user doesn't have eggdrop 1.6.20 or whatever you want to set
}
Once the game is over, the king and the pawn go back in the same box.
m4s
Halfop
Posts: 97 Joined: Mon Jan 30, 2017 3:24 pm
Post
by m4s » Wed Apr 22, 2020 3:30 pm
Is this correct:
Code: Select all
if { [package vcompare [regexp -inline {^[[:digit:]\.]+} $::version] 1.6.20] == -1 } {putloglev o * "\00304\002\[Reanimator - Error - Please upgrade your Eggdrop to 1.6.20 or above!" ; return }
?
CrazyCat
Revered One
Posts: 1304 Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:
Post
by CrazyCat » Wed Apr 22, 2020 5:48 pm
I'm not the creator nor the maintainer of this script, but if I remember well, this way to check the eggdrop version is made to bypass a changement of version notation introduced in branch 1.8.
I'll try to find the conversation / explanation about that.
btw, the short code (made by the author of Reanimator) works well and is validated by himself (lol) and me (lol bis)
ComputerTech
Master
Posts: 399 Joined: Sat Feb 22, 2020 10:29 am
Contact:
Post
by ComputerTech » Wed Apr 22, 2020 6:44 pm
whoops i forgot to translate that script sorry will do it as soon as i can
ComputerTech
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Thu Apr 23, 2020 12:45 am
@CrazyCat It runs just fine on my eggdrop version 1.8.4 as you can see:
Code: Select all
.tcl package require eggdrop
Tcl: 1.8.4
.tcl catch {package require "eggdrop 1.6.20"} err
Tcl: 1
Once the game is over, the king and the pawn go back in the same box.
CrazyCat
Revered One
Posts: 1304 Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:
Post
by CrazyCat » Thu Apr 23, 2020 3:27 am
I know that MenzAgitat had troubles with some versions having letters in the version. Can't remember which version it was, neither if it was eggdrop or windrop.