View Full Version : !Sections req for dzsbot
le coYote
07-18-2004, 11:48 AM
well, i try my req here ^^
i'd like to integrate a script into dzsbot file...
http://www.ioftpd.com/board/showthread.php?s=&postid=24608#post24608
thx for ur help ;)
Guardian
07-18-2004, 12:56 PM
on bottom of set procs add:
${cmdpre}sections:lnk_sections
on bottom of # SET BINDINGS add:
bind pub -|- [set cmdpre]sections lnk_sections
below # SEND TO 1 CHANNEL proc add:
# LNK SECTiONS
proc lnk_sections {nick uhost hand chan arg} {
global sections
set output $sections
sndchan "puthelp" $chan $output
}
do the cosmetics yaself ;)
Grtz
Guardian
le coYote
07-18-2004, 02:03 PM
yeah, it works... but it's the same thing that !***free.
here, the cmd "!***sections" post on channel those sections :
# SETUP HERE YOUR SECTIONS
set sections "SECTION1 SECTION2 SECTION3..."
I'm lookin for a script which can post directories created in the homedir of ioftpd...
>> I create some dir : "DIR1" "DIR2" "DIR3" in the homedir
I'd like the "!***sections" command gives me the sections "DIR1" "DIR2" "DIR3"...
Guardian
07-18-2004, 05:44 PM
replace the code with the following and ur done ...
# set path to root
set lnk(chk) "Z:/ioFTPD/site/"
proc lnk_sections {nick uhost hand chan arg} {
global lnk
set filelist [glob -nocomplain -directory $lnk(chk) "*"]
regsub -all "$lnk(chk)" $filelist "" filelist
set output "$filelist"
sndchan "puthelp" $chan $output
}
Njoy
Guardian
le coYote
07-18-2004, 06:30 PM
Great !! :D
exactly what I need ;)
Thx a lot :) :banana: :banana: :banana: :banana:
le coYote
07-20-2004, 07:13 AM
another thing...
I'd like to put the bot answers in NOTICE... I replaced
puthelp" $chan $output
puthelp "NOTICE $nick: $output"
but it seems that there is something wrong ^^ huhuhu
Guardian
07-20-2004, 05:05 PM
puthelp "NOTICE $nick : $output"
":" wrong set ;)
just made by b0unty on irc:
http://users.skynet.be/bounty/sections.tcl
works great, guess will be added to dzsbot next rls, thx
bounty
08-08-2004, 11:36 AM
yep ofcourse the full version will be added in next dzsbot rls ;)
atm it work only with the uncrypted chan cmd !sections
on the full version i'll integer in next dzsbot ... it will also support the crypted cmd
have fun
bounty
le coYote
08-21-2004, 08:02 AM
sorry to start again this post, but when I put a directory with spaces, like that for example :
# set path to root
set lnk(chk) "Z:/ioFTPD Dir/site/"
the bot gives me :
{Z:/ioFTPD Dir/site/"Directories"}, instead of : "Directories"
I mean, he gives me the path...
Is it possible to do something ?
thx
vBulletin® v3.8.11 Alpha 3, Copyright ©2000-2024, vBulletin Solutions, Inc.