FlashFXP Forums

FlashFXP Forums (https://oss.azurewebsites.net/forum/)
-   bounty's dZSbot (https://oss.azurewebsites.net/forum/ioftpd/ioftpd/scripting/bounty-s-dzsbot/)
-   -   %USER is downloading..... (https://oss.azurewebsites.net/forum/ioftpd/ioftpd/scripting/bounty-s-dzsbot/9148-user-downloading.html)

CP-Geek 10-07-2004 09:19 AM

%USER is downloading.....
 
Is this possible:

Every time a user start's a downloading a file there would be an line in IRC of it:

"Geek is downloading /mp3/Uriah Heep/lady.in.black.mp3"

I have so little traffic in my box so the amount of lines to IRC is no problem.

CP :)

bytepoet 02-03-2005 02:45 PM

announce
 
i also would like to know how to do this, VERY interested

esmandil 02-03-2005 05:27 PM

It is not complicated to write tcl script that would do what you want. Put it in

[FTP_Post-Command_Events]
retr = TCL ../scripts/logDownload.itcl

And inside the script:
putlog "DOWNLOAD: something or else"

I leave it up to you to get the the user, filename etc and to format the actual message correctly.

deo 02-03-2005 10:31 PM

Code:

##!
##[FTP_Pre-Command_Events]
##retr                = TCL ..\scripts\download.itcl

catch {putlog "UPDATE: \"$pwd\" \"\002$user\002/$group has started to download $pwd\002[lindex $args 1]\002\""}

##end


bytepoet 02-04-2005 04:29 PM

:banana: total newb here :banana:

where infact does this newly created script go? /eggdrop/scripts/ ?

CP-Geek 02-09-2005 06:08 AM

Thanks Deo, I'll try to test that

CP :)

EDIT: Works like a charm! :) I also modifoed it and put a "User has downloaded ...." and tried to put "@ 123 KB/s" but didnt get the cookie to work? any ideas?

CP-Geek 02-09-2005 09:57 AM

Quote:

Originally posted by byte-poet
:banana: total newb here :banana:

where infact does this newly created script go? /eggdrop/scripts/ ?

No, to Your io's /scripts folder, You also have to edit ioftpd.ini.

CP :)

bytepoet 02-09-2005 08:13 PM

thanks!

i will modify it tomorrow and report back my findings!

UPDATE: put everything in and restarted the ftp server....no change, only announces logons and logoffs...

i put the code into a file and put it in the scripts dir, and then modified the ioftpd.ini

dunno what im doin wrong here.....

CP-Geek 02-10-2005 07:37 AM

Where and what did You edit in ioftpd.ini?

Also, I'd like to know how do to remove path from this:

Code:

catch {putlog "UPDATE: \"$pwd\" \"\002$user\002 uploaded $pwd\002[lindex $args 2]\002\""}
CP :)

bytepoet 02-10-2005 03:49 PM

i created a file called download.itcl and i placed it in \ioFTPD\scripts...

in that file, i put in:

Code:

##!
##[FTP_Pre-Command_Events]
##retr                = TCL ..\scripts\download.itcl

catch {putlog "UPDATE: \"$pwd\" \"\002$user\002/$group has started to download $pwd\002[lindex $args 1]\002\""}

##end

and in the ioftpd.ini i now have a post section that looks like this...

Code:

[FTP_Post-Command_Events]
;mkd  =
;rmd  =
;stor =
;dele =
retr = TCL ..\scripts\download.itcl

any ideas what i 'm doin wrong?

bytepoet 02-17-2005 01:53 AM

stillll not there
 
ok, after fiddling with this thing nightly, i cant get this to work. anyone able to help me out here?

CP-Geek 02-17-2005 05:24 AM

It should be in

Code:

[FTP_Pre-Command_Events]
;mkd  =
;rmd  =
;stor =
;dele =
retr = TCL ..\scripts\download.itcl

Notice the Pre-Command-part?

Also I noticed that sometimes a restart is needed, rehash don't seem to reset everything.

deo 02-17-2005 08:17 AM

yup. pre, else user isnt to start download, theyve finished it

bytepoet 02-17-2005 02:23 PM

bwahahaha...will change and see whats up

bytepoet 02-17-2005 02:56 PM

ok, same stuff. It announces logins and logouts but not when created
files are as examples
the ioftpd.ini contains:
Code:

[FTP_Pre-Command_Events]
;list =
;stor =
;mkd  =
retr = TCL ..\scripts\download.itcl

[FTP_Post-Command_Events]
;mkd  =
;rmd  =
;stor =


and the download.itcl contains:
Code:

##!
##[FTP_Pre-Command_Events]
##retr                = TCL ..\scripts\download.itcl

catch {putlog "UPDATE: \"$pwd\" \"\002$user\002/$group has started to download $pwd\002[lindex $args 1]\002\""}

##end

i now have the ioftpd trying to execute it in the pre section, but no change...no output to the irc channel. It DOES look like its putting it to a log though...where do i go from here!?


All times are GMT -5. The time now is 10:39 PM.

Powered by vBulletin® Version 3.8.11 Alpha 3
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)