PDA

View Full Version : jTQ


jeza
11-06-2005, 04:38 AM
jTQ (http://www.inicom.net/pages/en.ioftpd-scripts.php?id=189) is trial/quota script


- normal quota/trial for users
- group quota for groups
- on fail trial
* delete acount
* disable acount
- on fail quota
* nothing
* delete acount
* disable acount
* move acount to trial group
* remove credits

zOrP
11-07-2005, 04:03 PM
hmm

Microsoft Windows XP [version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\ioFTPD\system>jscripts.exe CHECK
ERROR: InitializeSharedMemory - FAILED

zOrP
11-07-2005, 04:12 PM
and..

[22:07:54] [xxx] [22:07] can't read "jTQ(time_trigers)": no such element in array
[22:07:54] [xxx] while executing
[22:07:54] [xxx] "foreach prc $jTQ(time_trigers) {
[22:07:54] [xxx] set n [split $prc "-"]
[22:07:54] [xxx] [lindex $n 1] min hour day month year
[22:07:54] [xxx] }"
[22:07:54] [xxx] (procedure "jTQ:BiND" line 12)
[22:07:54] [xxx] invoked from within
[22:07:54] [xxx] "jTQ:BiND"
[22:07:54] [xxx] (file "scripts/jTQ/jTQ.tcl" line 1631)
[22:07:54] [xxx] invoked from within
[22:07:54] [xxx] "source scripts/jTQ/jTQ.tcl"
[22:07:54] [xxx] (file "eggdrop.conf" line 310)
[22:07:54] [xxx] [22:07] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
DCC session closed

on rehash

anetacz
11-07-2005, 04:31 PM
C:\ioFTPD\system>jscripts.exe CHECK

i have same problem ..failed

jeza
11-07-2005, 05:21 PM
blup :)

iNFO

jTQ With jScripts.exe will work only if u have :
- ioFTPD installed in c:\ioFTPD
- WindowName = ioFTPD::MessageWindow

---------------------------------------------------------------

INSTALATiON
...

anetacz
11-07-2005, 05:39 PM
i have all option from your instalation nfo...but still failed :(

zOrP
11-07-2005, 06:28 PM
yup..
here too.. i have set that.. :/
could it be because io is running as a service ?

jeza
11-08-2005, 07:12 AM
it should work if u have this message window
i tested with firedaemon and it worked
make sure u have interact with desktop checked

-> can't read "jTQ(time_trigers)": no such element in array
typo in jTQ.conf -
find set jTQ(time_triggers) and change to set jTQ(time_trigers)

if still doesnt work i sugest to use some other script for trial/quota ;)

zOrP
11-08-2005, 05:03 PM
hehe..
No thanks.. i wanna try this one.. :>
and after i interact it works. :)

But

[23:06:43] [xxx] [23:06] ..jTQ...: LOCALE UPDATE
[23:06:43] [xxx] [23:06] ..jTQ...: C:/ioFTPD/system/jScripts.exe BCUSTATS 0 FAiLED (ERROR: InitializeSharedMemory - FAILED
[23:06:43] [xxx] child process exited abnormally)
[23:06:43] [xxx] [23:06] ..jTQ...: TRiAL CHECK
[23:06:43] [xxx] [23:06] ..jTQ...: QUOTA CHECK
[23:06:43] [xxx] [23:06] ..jTQ...: 528h To The End Of Month
[23:06:43] [xxx] [23:06] ..jTQ...: PASSED 'CREATE'
[23:06:43] [xxx] [23:06] Tcl error in file 'eggdrop.conf':
[23:06:43] [xxx] [23:06] syntax error in expression "1500-": premature end of expression
[23:06:43] [xxx] while executing
[23:06:43] [xxx] "expr $jTQ(quota_[lindex $n 0])-$jTQ(number_amount)"
[23:06:43] [xxx] (procedure "jTQ:PASSED" line 356)
[23:06:43] [xxx] invoked from within
[23:06:43] [xxx] "jTQ:PASSED nick uhost hand $jTQ(default_admin_chan) [lindex $line 0]"
[23:06:43] [xxx] (procedure "jTQ:QUOTACHECK" line 72)
[23:06:43] [xxx] invoked from within
[23:06:43] [xxx] "[lindex $n 1] min hour day month year"
[23:06:43] [xxx] (procedure "jTQ:BiND" line 14)
[23:06:43] [xxx] invoked from within
[23:06:43] [xxx] "jTQ:BiND"
[23:06:43] [xxx] (file "scripts/jTQ/jTQ.tcl" line 1631)
[23:06:43] [xxx]
[23:06:43] [xxx] [23:06] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
DCC session closed

after i changed time trigers

jeza
11-08-2005, 05:18 PM
yes
because ERROR: InitializeSharedMemory - FAILED
that means message window "ioFTPD::MessageWindow" was not found

zOrP
11-08-2005, 06:03 PM
[Threads]
Process_Priority = NORMAL # Suggested process base priority (Idle/Normal/High/Realtime)
Io_Threads = 2 # Number of io threads
Worker_Threads = 5 # Number of worker threads
Encryption_Threads = 2 # Number of encryption threads
WindowName = ioFTPD::MessageWindow

but after i did interact the cmd worked..

jscripts.exe CHECK

just bot ****ing..

jeza
11-09-2005, 01:51 AM
if jscripts.exe works its ok now
just to be sure u can run
jscripts.exe bcustats 0
to see if u get some feedback

for jTQ :
i didnt test the script with blowfish disabled :(
so thats why there was this error with jTQ(time_trigers)
so when u switch to blowfish u must change back to jTQ(time_triggers)

and when u rehash your bot
bot will auto update stats (.jTQ...: LOCALE UPDATE)
u will get output in chan for !trials and !quotas
and perhaps something else
so i suggest to use blowfish or wait until i post a fix

zOrP
11-09-2005, 04:45 PM
hmm..
nice script though.

Got everything working yesterday.

But now this morning i get

[08:34:09] [@xxx] !passed user
[08:34:09] [@xxx] -xxx/QUOTA- > user has 20 Day(s) To Pass 1500/1500MB (75MB/DAY) MNUP (#4)
[08:34:09] [@xxx] ..jTQ...: C:/ioFTPD/system/jScripts.exe CHANGECREDITS user -1000 FAiLED (couldn't duplicate input handle: bad file number)
[20:18] Tcl error [jTQ:PASSED]: invoked "break" outside of a loop

and besides, isnt it only supposed to take credits on failed and not on every check ?


and on !rehash
08:32:07] [@xxx] !rehash
[08:32:07] [@xxx] ..jTQ...: C:/ioFTPD/system/jScripts.exe BCUSTATS 0 FAiLED (couldn't duplicate input handle: bad file number)

strange though.
CAuse if i do cmd..
jscripts.exe bcustats 0
works fine
and all other cmds working fine too..


And any way to make it work without interact with desktop ?
otherwise sitebot window wont dissapear.. :/

And last error.

on !quotas i get
[13:28:15] [@xxx] -xxx/PASSED- > user (31340MB)

and !passed says
[13:28:11] [@xxx] -xxx/QUOTA- > user upped 29840MB/1500MB > MNUP (#1) with 20 Day(s) left

which is true ?

other than that. nice work. :>

zOrP
11-15-2005, 12:10 PM
HMM..
seems i found the error.

Run your eggdrop in -nt mode, and first 2 errors dissapear.

But the !passed and !quotas still says different amount. 500mb

last problem.
how do i hide window when running -nt mode.
using firedaemon ?

jeza
11-15-2005, 01:33 PM
31340-1500=29840
on quotas u see total amount user upped
on passed u can choose betwen total , missing, how_many_over
try it like this:
xxx/QUOTA- > user upped 29840MB over the 1500MB quota > MNUP (#1) with 20 Day(s) left

yes allways use -nt

i use firedaemon
interact with desktop checked and runs on hiden mode

->
"credits" on end of month
in config says how many MB to take from user on fail
it should be kB not MB

zOrP
11-15-2005, 02:11 PM
ah yes..
seems everything is working flawless now..

Thnx again for another fine script jeza.. :)

fL4sh.r0x
11-18-2005, 07:38 PM
Hi jeza, u think to implement this new feature to a new iojtq for ring?
:)

jeza
11-19-2005, 01:30 AM
i stoped to work on iojtq
jtq will be supported
todolist:
- everything u can find in iojtq ;)
- something more :D

zpr
11-19-2005, 02:54 AM
great news

btw, any updates on iojzs?

regards

ChipMunk666
11-26-2005, 07:07 AM
blup :)

iNFO

jTQ With jScripts.exe will work only if u have :
- ioFTPD installed in c:\ioFTPD
- WindowName = ioFTPD::MessageWindow

---------------------------------------------------------------

INSTALATiON
...

Any chance to bypass that?

set jTQ(location_jscripts) "C:/ioFTPD/system/jScripts.exe"
set jTQ(location_ncftpls) "C:/ioFTPD/system/ncftpls.exe"


this setting don't work?

jeza
11-26-2005, 09:00 AM
great news

btw, any updates on iojzs?

regards


probably i will not post any new version of iojZS public anymore
last public is 1.13 i think.
all versions from that are for private use only :rolleyes:



Any chance to bypass that?

set jTQ(location_jscripts) "C:/ioFTPD/system/jScripts.exe"
set jTQ(location_ncftpls) "C:/ioFTPD/system/ncftpls.exe"



this setting is only for jTQ to find jScripts.exe and ncftpls (for bnc only)
jScripts is compiled to work only with c:\ioftpd and msgwindow "ioFTPD::MessageWindow"

ChipMunk666
11-26-2005, 07:03 PM
hehe nice script u have there but now i have something else
source scripts/jTQ/jTQ.tcl
source scripts/dZSbot.tcl

than dsbot works

if

source scripts/dZSbot.tcl
source scripts/jTQ/jTQ.tcl

jtq works

when seperate same bot both work only i don't get the quota to work and also
!affil !banned

and when i do !trials !passed they spam up in admin channel and not in main channel where i triggered them.
!affil !banned shows up in the cmd screen of the bot bot no announce.

using iosharedb.

the script really looks nice with that sql database
Also how to have a global quota? <===total noob in these kind of setups hehe.

ChipMunk666
12-05-2005, 10:41 AM
jeza when i use firedeamon i get memory failed.
i tried to add jscriipts check in fire aswell but no luck :'(
when i use normal it runs with np
...
just letting u know maybe u have a fix :)

I also added this line

set jTQ(no_quota_groups) "SiTEOPS"
set jTQ(quota_excluded_users) "ioFTPD sitebot"
set jTQ(quota_excluded_groups) "$jTQ(group_quota_group_list) $jTQ(trial_group) $jTQ(affils_0DAY) $jTQ(affils_MP3) $jTQ(affils_DiVX) $jTQ(no_quota_groups)"

and it works like a charm :)

jeza
12-06-2005, 12:57 PM
why run jscripts.exe with firedaemon?

or u can do it like this :D
set jTQ(quota_excluded_groups) "SiTEOPS NUKERS $jTQ(group_quota_grou...

ChipMunk666
12-06-2005, 04:55 PM
why run jscripts.exe with firedaemon?

or u can do it like this :D
set jTQ(quota_excluded_groups) "SiTEOPS NUKERS $jTQ(group_quota_grou...

yeah i noticed afterwards :s
why well cause it didn't find memory :)
so i was thinking like how u add ssl :) maybe this was the same thing why it didn't work hehe
But it's solved now
Thanks

zOrP
12-06-2005, 06:27 PM
chipmunk... look at my last post..

Run ioftpd sitebot and jTQ bot in firedaemon, with interact with desktop checked, and hidden mode, and jTQ bot in -nt..

then everything works like a charm with win xp.

have been experiencing some problems with win 2k3 server.. :/

zOrP
12-10-2005, 04:40 PM
btw jeza..
any way to add the
!ftp site cmd
function like in iojTQ ?

and that nice daystats feature.. :>

ChipMunk666
12-11-2005, 01:45 AM
chipmunk... look at my last post..

Run ioftpd sitebot and jTQ bot in firedaemon, with interact with desktop checked, and hidden mode, and jTQ bot in -nt..

then everything works like a charm with win xp.

have been experiencing some problems with win 2k3 server.. :/

Fixed It's because it otherwise can't interect with
WindowName = ioFTPD::MessageWindow

a bit harsh to use firedeamon than but for me it isn't that of a big issue...

zOrP
12-18-2005, 09:27 AM
hey.. jeza.. experiencing some problems with firedaemon and jTQ.

Seems i can only run 1 bot
and i need 2.
1 for jtq and 1 for dzsbot..
anyway to fix..?
(running win2k3 server) <-- sux

ChipMunk666
12-18-2005, 12:53 PM
hey.. jeza.. experiencing some problems with firedaemon and jTQ.

Seems i can only run 1 bot
and i need 2.
1 for jtq and 1 for dzsbot..
anyway to fix..?
(running win2k3 server) <-- sux

I had this aswell.
I got a confirmation that he is searching for a fix...
But u could use 2 bots
1 quota and one dszbot...

zOrP
12-18-2005, 01:39 PM
what ya meen chipmunk ?
i want to use 2..
If i start manual they work fine..
if i start in fire daemon only the first started works.. :/