This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

let the bot acept files from other users

Old posts that have not been replied to for several years.
Locked
User avatar
sKy
Op
Posts: 194
Joined: Thu Apr 14, 2005 5:58 pm
Location: Germany

let the bot acept files from other users

Post by sKy »

How can the bot acept a file from a user which he will send with 'dcc send' over irc?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

this is done automatically upon receiving DCC SEND request
User avatar
sKy
Op
Posts: 194
Joined: Thu Apr 14, 2005 5:58 pm
Location: Germany

Post by sKy »

If i try to send the bot a file:
notice from bot: "DCC file transfers not supported."
on partyline: "Refused dcc send test.txt from sKy.."

Is there a way to send the bot a file and he acept + bind/trigger it?
Well, sorry i don`t understand your answer. (file transfer modul loaded, eggdrop 1.6.17)
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

that means you didn't configure your filesys module - either files-path or/and incoming-path is not set, and your upload-to-pwd is 0
User avatar
sKy
Op
Posts: 194
Joined: Thu Apr 14, 2005 5:58 pm
Location: Germany

Post by sKy »

set files-pat [pwd]
set incoming-path [pwd]
set upload-to-pwd 1

This are my settings. :/
The filesys modul is compiled and loaded too, for sure.
Any idea? :/

And how i can 'bind' this event?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

you contributed to Tcl FAQ section, yet you obviously haven't read tcl-commands.doc in its entirety?
(21) SENT (stackable)
bind sent <flags> <mask> <proc>
proc-name <handle> <nick> <path/to/file>

Description: after a user has successfully downloaded a file from
the bot, this binding is triggered. mask is matched against the
handle of the user that initiated the transfer and supports
wildcards. nick is the actual recipient (on IRC) of the file. The
path is relative to the dcc directory (unless the file transfer
was started by a script call to 'dccsend', in which case the path
is the exact path given in the call to 'dccsend').
Module: transfer

(22) RCVD (stackable)
bind rcvd <flags> <mask> <proc>
proc-name <handle> <nick> <path/to/file>

Description: triggered after a user uploads a file successfully.
mask is matched against the user's handle. nick is the IRC
nickname that the file transfer originated from. The path is
where the file ended up, relative to the dcc directory (usually
this is your incoming dir).
Module: transfer

...

(43) LOST (stackable)
bind lost <flags> <mask> <proc>
proc-name <handle> <nick> <path> <bytes-transferred> <length-of-file>

Description: triggered when a DCC SEND transfer gets lost, such as
when the connection is terminated before all data was successfully
sent/received. This is typically caused by a user abort.
Module: transfer

(44) TOUT (stackable)
bind tout <flags> <mask> <proc>
proc-name <handle> <nick> <path> <bytes-transferred> <length-of-file>

Description: triggered when a DCC SEND transfer times out. This may
either happen because the dcc connection was not accepted or
because the data transfer stalled for some reason.
Module: transfer
Locked