fix text collector

This commit is contained in:
biglyderv 2025-02-02 22:01:07 -05:00
parent 0ae7c849b6
commit a937901043

View file

@ -174,7 +174,7 @@ async function rounder(users, data, mode) {
return endn;
}
async function textCollector(word, path, file) {
async function textCollector(word, path, file, data2) {
if (!hh) hh = await readFile(file, 'utf8');
hh = hh.toLowerCase();
@ -199,6 +199,10 @@ async function siteCollector(user, path, site, useLimit, data2) {
return await textCollector(user, path, route, data2);
}
if (site == 'db') {
return await dbCollector(user, path, route, useLimit, data2);
}
if (site == 'url') {
return await urlCollector(user, path, route, useLimit, data2);
}