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.

sending a specific file

Old posts that have not been replied to for several years.
Locked
G
Garby
Voice
Posts: 5
Joined: Thu Jun 16, 2005 12:01 pm
Location: France

sending a specific file

Post by Garby »

Hello,
I'd like my windrop to send a specific file on a given command.

Like someone type !send whatever.txt, and the bot will send the specified file. (All the files starting with "index_", it would be index_whatever.txt here)

I tried "dccsend c:/windrop/indexes/index_$arg.txt Nickname" but it didn't work :(.

I hope someone will be able to help me. Thanks in advance.
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

try a relative path like "indexes/index_$arg" and an absolute like "/cygdrive/c/windrop/indexes/index_$arg"
also check the return value of the proc, it might give you hints. also ensure to regsub | < and >, because they are special characters.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
G
Garby
Voice
Posts: 5
Joined: Thu Jun 16, 2005 12:01 pm
Location: France

Post by Garby »

worked fine with "indexes/index_$arg." Thank you very much :) .
Locked