You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
xdccJS will timeout any request after a certain amount of time when no file is sent (see [Options.timeout](#options)), Which is exactly what happens when a bot puts you into queue.
106
+
107
+
To avoid this behavior you need to provide a [regex](https://www.w3schools.com/jsref/jsref_obj_regexp.asp) matching the bot "queue message".
108
+
109
+
```js
110
+
constopts= {
111
+
host:'irc.server.com',
112
+
timeout:20// defaut is 30
113
+
queue:/request(.*)queued(.*)\d+\/\d+$/g
114
+
//=> excepted bot queue message: "Your request has been queued: position x/x"
**I recommend using double quotes between the `bot name` and `download path`** as they often both include unescaped characeters or whitespaces
354
+
**I recommend using double quotation marks between the `bot name` and `download path`** as they often both include unescaped characeters or whitespaces, **They are mandatory when using between `--queue`'s regex** (_see [examples below](#fyi)_)
327
355
## Profiles
328
356
You can use profiles to automatically load predefined options on startup
# excepted bot queue message: "Your request has been queued: position x/x"
422
+
```
423
+
- see [why is queue important](#download-queue-detection) and [w3schools JavaScript RegExp Reference](https://www.w3schools.com/jsref/jsref_obj_regexp.asp) if you're clueless about regexes
390
424
391
425
## Documentation
392
426
Full documentation is available <a href="https://jipaix.github.io/xdccJS/classes/default.html">here</a>
0 commit comments