first commit

This commit is contained in:
genio
2021-11-18 15:09:56 +01:00
commit 52759b7ce9
14 changed files with 260 additions and 0 deletions

24
lib/yt-dlpCaller.js Normal file
View File

@@ -0,0 +1,24 @@
const Readable = require('stream').Readable;
class Subscription extends Readable{
constructor(options) {
super();
if (!(this instanceof Subscription))
return new Subscription(options);
options = options || {};
Readable.call(this, options);
this.value = 0;
}
_read() {
while(this.value <= 100){
this.push(String(this.value++));
}
}
}
exports.subscribe = function(event, options){
return new Subscription(options);
}