From 69ae37e05e5311fa1c17f95d9ecb5e8149e57299 Mon Sep 17 00:00:00 2001 From: Danil Nikolaev Date: Mon, 16 Feb 2026 19:50:07 +0300 Subject: [PATCH] /ae command now available if specifically set to --- src/common/environment.ts | 4 ++++ src/index.ts | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/common/environment.ts b/src/common/environment.ts index 7860703..4be1761 100644 --- a/src/common/environment.ts +++ b/src/common/environment.ts @@ -19,6 +19,8 @@ export class Environment { static ONLY_FOR_CREATOR_MODE: boolean; + static ENABLE_UNSAFE_EVAL: boolean; + static ANSWERS: Answers; static USE_NAMES_IN_PROMPT: boolean; @@ -65,6 +67,8 @@ export class Environment { Environment.ONLY_FOR_CREATOR_MODE = ifTrue(process.env.ONLY_FOR_CREATOR_MODE); + Environment.ENABLE_UNSAFE_EVAL = ifTrue(process.env.ENABLE_UNSAFE_EVAL); + Environment.USE_NAMES_IN_PROMPT = ifTrue(process.env.USE_NAMES_IN_PROMPT); Environment.MAX_PHOTO_SIZE = Number(process.env.MAX_PHOTO_SIZE || "1280"); diff --git a/src/index.ts b/src/index.ts index 14d8aaf..6a426a5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -132,7 +132,6 @@ export const commands: Command[] = [ new Start(), new Help(), new Test(), - new Ae(), new Ignore(), new Unignore(), new Ping(), @@ -168,6 +167,10 @@ export const commands: Command[] = [ new YouTubeDownload() ]; +if (Environment.ENABLE_UNSAFE_EVAL) { + commands.push(new Ae()); +} + export const callbackCommands: CallbackCommand[] = [ new OllamaCancel() ];