Let's say we have an IRC #ChannelName
at irc.server.com
where people can freely download files from the bots, by commands such as /msg BotName xdcc send #123
, and we want to download one such file into our /download/dir
. How to do it in a simple, wget/curl-like, command?
It may be more than one command, or a script, but bear in mind that I want to encapsulate this into a script so I can just type something along the lines of
irc-download.sh irc.server.com ChannelName BotName 123 /download/dir
Then wait a while, and have the file, like it was a wget download.
Good things to have in a solution:
- Is cross-platform (i.e., Windows binary or source code that can compile into it, or script).
- Has some sort of progress indication.
- Can download two files at the same time (i.e., has no problem connecting twice to same server).
- Is secured against a bad bot sending other unrequested files in the same session.
- Is mostly self-contained (i.e., any needed binaries can run by themselves).