Filesys module


This module provides an area withing the bot where users can store files. With this module the bot is useable as a fileserver.

  1. Config file settings
  2. Tcl bindings

1. Config file settings

Lines in bold are the lines that need to be included in the eggdrop config file if you want to use the share module.
Lines in bold italics are optional and only required if you wish to change the default behaviour for that particular feature.

This module provides the filesys support. You have to load this if you want your users to upload and download files from your bot.

Put this line into your eggdrop.conf file to load filesys module:

loadmodule filesys

There are also some variables you can to set in your config file:

set files-path "/home/mydir/eggdrop/filesys"

Set here the 'root' directory for the file system

set incoming-path "/home/mydir/eggdrop/filesys/incoming"

If you want to allow uploads, set this to the directory uploads should be put into.

Set this to "" if you don't want people to upload files to your bot.

set upload-to-pwd 0

If you don't want to have a central incoming directoy but uploads should go to the current directory that a user is in, use this setting.

Valid settings: 1 to enable, 0 to disable.

set filedb-path ""

Eggdrop creates a '.filedb' file in each subdirectory of your dcc area, to keep track of its own file system info -- if you can't do that (like if the dcc path isn't owned by you) or you just don't want it to do that, specify a path here where you'd like all the database files to be stored instead
(otherwise, just leave it blank)

set max-file-users 20

Set here maximum number of people that can be in the file area at once.

Set it to 0 to make it effectively infinite.

set max-filesize 1024

Set here the maximum allowable file size that will be received, in K (default is 1024K = 1M)


2. Tcl bindings

FIL

bind fild <flags> <command> <proc>
proc-name <handle> <idx> <arg>

Used for commands from a filesys connection on the party line; as in MSG and DCC, the command is the first word and everything else is the argument string; The idx is valid until the user disconnects; after that it may be reused, to be careful about storing an idx for long periods of time


© 1997 Robey Pointer
© 1999,2000 Eggheads