mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-18 23:01:38 +01:00
13 lines
357 B
TypeScript
13 lines
357 B
TypeScript
import { eventSub, chatterEventSub } from "main";
|
|
|
|
import { readdir } from 'node:fs/promises';
|
|
const files = await readdir(import.meta.dir);
|
|
for (const file of files) {
|
|
if (!file.endsWith('.ts')) continue;
|
|
if (file === import.meta.file) continue;
|
|
await import(import.meta.dir + '/' + file.slice(0, -3));
|
|
};
|
|
|
|
eventSub.start();
|
|
chatterEventSub.start();
|