perf: tune selfbot runtime defaults
Apply low-memory client options and point the workspace vendor package at the optimized selfbot internals for more stable long-running moderation capture. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
bd03fe1817
commit
2c58e44c67
+2
-1
@@ -5,6 +5,7 @@ import "dotenv/config";
|
||||
import { Client } from "discord.js-selfbot-v13";
|
||||
import { config } from "./config";
|
||||
import { closeDatabase, initializeDatabase } from "./database/drizzle";
|
||||
import { createDiscordClientOptions } from "./discordClientOptions";
|
||||
import { createChildLogger } from "./logger";
|
||||
import { startPendingAIAnalysisWorker } from "./moderation/aiAnalyzer";
|
||||
import { syncBacklogMessages } from "./moderation/backlogSync";
|
||||
@@ -22,7 +23,7 @@ logger.info(
|
||||
);
|
||||
|
||||
logger.info("Creating Discord client");
|
||||
const client = new Client();
|
||||
const client = new Client(createDiscordClientOptions());
|
||||
const voiceController = new VoiceController(client);
|
||||
|
||||
let isShuttingDown = false;
|
||||
|
||||
Reference in New Issue
Block a user