Cleaned up repo and separated both bots into their respective folders

This commit is contained in:
Sid 2023-04-14 15:54:26 +02:00
parent 5414de60ca
commit a9fda1fcb7
3134 changed files with 382980 additions and 31 deletions

20
sidBot-js/node_modules/strtok3/lib/index.js generated vendored Normal file
View file

@ -0,0 +1,20 @@
import * as fs from './FsPromise.js';
import * as core from './core.js';
export { fromFile } from './FileTokenizer.js';
export { EndOfStreamError, fromBuffer } from './core.js';
/**
* Construct ReadStreamTokenizer from given Stream.
* Will set fileSize, if provided given Stream has set the .path property.
* @param stream - Node.js Stream.Readable
* @param fileInfo - Pass additional file information to the tokenizer
* @returns Tokenizer
*/
export async function fromStream(stream, fileInfo) {
fileInfo = fileInfo ? fileInfo : {};
if (stream.path) {
const stat = await fs.stat(stream.path);
fileInfo.path = stream.path;
fileInfo.size = stat.size;
}
return core.fromStream(stream, fileInfo);
}