From eea277913c7e2ab90603e5f347d24ab844bb7cbc Mon Sep 17 00:00:00 2001 From: IAPP-BY Date: Tue, 3 Jun 2025 14:57:49 +0800 Subject: [PATCH] Update smithery.yaml --- smithery.yaml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/smithery.yaml b/smithery.yaml index 59e9e50..27389e1 100644 --- a/smithery.yaml +++ b/smithery.yaml @@ -9,8 +9,7 @@ startCommand: type: http configSchema: type: object - required: - - DISCORD_TOKEN + required: ["DISCORD_TOKEN"] properties: DISCORD_TOKEN: type: string @@ -18,8 +17,11 @@ startCommand: description: "Discord bot token. Obtain this from the Discord Developer Portal." exampleConfig: DISCORD_TOKEN: YOUR_DISCORD_BOT_TOKEN - commandFunction: | - (config) => ({ - command: 'node', - args: ['build/index.js', '--transport', 'http', '--port', '8080', '--config', config.DISCORD_TOKEN], - }) \ No newline at end of file +commandFunction: | + (config) => ({ + command: 'node', + args: ['build/index.js', '--transport', 'http', '--port', '8080', '--config', config.DISCORD_TOKEN], + env: { + DISCORD_TOKEN: config.DISCORD_TOKEN + } + }) \ No newline at end of file