mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-25 12:11:03 +00:00
fix: addTrainData not being added to the events
This commit is contained in:
@@ -12,7 +12,7 @@ global.config = config;
|
||||
import { createServer } from 'node:net';
|
||||
import { deserialize } from 'bson';
|
||||
import FastText from 'fasttext.js';
|
||||
import { runAI, trainAI, runOCR } from './events/index.js';
|
||||
import { runAI, trainAI, runOCR, addTrainData } from './events/index.js';
|
||||
|
||||
const ft = new FastText(global.config.fasttext);
|
||||
|
||||
@@ -31,6 +31,11 @@ const server = createServer(async (client) => {
|
||||
break;
|
||||
};
|
||||
|
||||
case 3: {
|
||||
addTrainData(eventData);
|
||||
break;
|
||||
};
|
||||
|
||||
case 4: {
|
||||
trainAI();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user