Old 07-18-2004, 11:48 AM   #1
le coYote
Junior Member
 
Join Date: Feb 2004
Posts: 16
Default !Sections req for dzsbot

well, i try my req here ^^

i'd like to integrate a script into dzsbot file...

http://www.ioftpd.com/board/showthre...4608#post24608

thx for ur help
le coYote is offline   Reply With Quote
Old 07-18-2004, 12:56 PM   #2
Guardian
Senior Member
 
Join Date: May 2003
Posts: 131
Default

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:

Code:
# 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
Guardian is offline   Reply With Quote
Old 07-18-2004, 02:03 PM   #3
le coYote
Junior Member
 
Join Date: Feb 2004
Posts: 16
Default

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"...
le coYote is offline   Reply With Quote
Old 07-18-2004, 05:44 PM   #4
Guardian
Senior Member
 
Join Date: May 2003
Posts: 131
Default

replace the code with the following and ur done ...

Code:
# 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
Guardian is offline   Reply With Quote
Old 07-18-2004, 06:30 PM   #5
le coYote
Junior Member
 
Join Date: Feb 2004
Posts: 16
Default

Great !!

exactly what I need

Thx a lot :banana: :banana: :banana: :banana:
le coYote is offline   Reply With Quote
Old 07-20-2004, 07:13 AM   #6
le coYote
Junior Member
 
Join Date: Feb 2004
Posts: 16
Default

another thing...

I'd like to put the bot answers in NOTICE... I replaced

Code:
puthelp" $chan $output
Code:
puthelp "NOTICE $nick: $output"
but it seems that there is something wrong ^^ huhuhu
le coYote is offline   Reply With Quote
Old 07-20-2004, 05:05 PM   #7
Guardian
Senior Member
 
Join Date: May 2003
Posts: 131
Default

puthelp "NOTICE $nick : $output"

":" wrong set
Guardian is offline   Reply With Quote
Old 08-08-2004, 06:33 AM   #8
zpr
Senior Member
ioFTPD Foundation User
 
Join Date: Feb 2003
Posts: 170
Default

just made by b0unty on irc:

http://users.skynet.be/bounty/sections.tcl

works great, guess will be added to dzsbot next rls, thx
zpr is offline   Reply With Quote
Old 08-08-2004, 11:36 AM   #9
bounty
Senior Member
ioFTPD Scripter
 
Join Date: Aug 2002
Posts: 529
Default

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
bounty is offline   Reply With Quote
Old 08-21-2004, 08:02 AM   #10
le coYote
Junior Member
 
Join Date: Feb 2004
Posts: 16
Default

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
le coYote is offline   Reply With Quote
Reply

Tags
dzsbot, file, integrate, req, script

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring FlashFXP to bypass Kerio firewall? tuberacer49 General Discussion 1 02-08-2005 03:55 AM
backup settings and accounts? NeedHelp General Discussion 5 09-29-2004 10:20 AM


All times are GMT -5. The time now is 12:02 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)