PDA

View Full Version : [Filled] Automatic sections for sitebot


le coYote
07-18-2004, 09:40 AM
Hi,
I'm looking for a tcl script which will make it possible to my eggdrop to post on channel IRC the sections of the server according to the repertories created in the Home directory of ioftpd...

For example :

In the Home directory of ioftpd there are those dirs :
/MP3/
/MOVIES/
/PICTURES/

And the eggdrop, after one typed "!sections", answers us:

Sections available are : MP3 - MOVIES - PICTURES

Thx For your help :)

sUN76bEAM
07-18-2004, 10:00 AM
USE iojTQ :D

le coYote
07-18-2004, 11:27 AM
is it possible to integrate only the part concerning the sections in dzsbot, 'cause there too many things I don't want in iojTQ... ??

neoxed
07-18-2004, 11:36 AM
Indeed, iojTQ has a completely different purpose, it's mainly for trial and quota across several sites.

dZSbot, as far as I know, doesn't have a !sections trigger to display the sections. However, you could try posting a feature request in the dZSbot forum category.

If you're currently using ioBanana, the sitebot for ioBanana has this command.

le coYote
07-18-2004, 11:43 AM
indeed, the only thing about sections in dzsbot is :

# SETUP HERE YOUR SECTIONS
set sections "SECTION1 SECTION2..."
and the cmd is !***free

But no relations with directories located in home directory.

hot_pit
07-18-2004, 02:33 PM
dunno ... try this

bind pub - !sections pub:sections

proc pub:sections {nick uhost handle chan arg} {
putquick "PRIVMSG $chan :\[\002\0033SECTiONS\003\002]\ - MOViES - MP3 - SHiT "
}

le coYote
07-18-2004, 05:21 PM
hum... this code works, but it's the same problem as before. With those lines, the egg announce only the 3 directories (that I wrote on the tcl file). i want the bot to announce on the chan directories I had created or I will create in ioftpd's home directory.

Thus, if I'd like to change sections on the server, I needn't modify dzsbot.tcl or orther tcl file.

hmmm I give you another example : :p

In homedir, I create 1 dir : "DIR1"
so, when I type "!sections" on irc, eggdrop announce on channel : "Sections Are : DIR1"

Then, I create a seconde dir : "DIR2"
consequently, when I type "!sections", eggdrop announce : "Sections Are : DIR1 DIR2"

I create a third dir : "DIR3"
and when I type "!sections", the bot answers : "Sections Are : DIR1 DIR2 DIR3"

Whether I delete one of directory, for example DIR1, egg says : "Sections Are : DIR2 DIR3"

etc etc etc

But I just want "!sections" command write on irc directories located in ioftpd's HOME DIRECTORY, not others dir inside :)

I hope that you understand what I try to explain ^^

and thx for your help ;)

Guardian
07-18-2004, 05:47 PM
look here (http://www.ioftpd.com/board/showthread.php?threadid=3646)

Grtz
Guardian