This fork is based on another fork that uses stream callbacks rather than writing to a file like in the original project.
It aims to give more options on the command line and/or by a config file... Somewhere between common DCC clients and xdccget.pl script for irssi.
Here is a first list of options that I think will be useful
-
Add command line options
--config
: Path to a config file.--connect-and-join
: Connect to an irc server and join chanel eg: irc://network.com/channel.--download-file
: Input file that describes jobs.--download-path
: Destination path for downloads.
-
Write a packetNumber parser that should parse correctly :
1 2 5
: query files1, 2, 5
1,2,5
: query files1, 2, 5
1-10
: query files1, 2, 3, 4, 5, 6, 7, 8, 9, 10
1-5,10
: query files1, 2, 3, 4, 5, 10
1-5 10
: query files1, 2, 3, 4, 5, 10
1-5 8-10
: query files1, 2, 3, 4, 5, 8, 9, 10
-
Write a job file reader, asks to download many files at a time from several distinct bots on the same network/channel, using that sample configuration file :
'jobs' : {
'parallelTasks': 2,
'channel' : {
'uri' : 'irc://network.com/#channel',
'bot' : {
'name': 'botName1',
'packets': '1-5'
},
'bot' : {
'name': 'botName2',
'packets': '1-5'
}
}
}
Get the project and install dependencies:
git clone [email protected]:optyler/node-xdcc.git
cd node-xdcc
npm install
./node-xdcc.js --uri "irc://irc.absoluty-irc.org/#XDCC" --bot "[FST]-1r0n" --pack 4