Update smithery.yaml

This commit is contained in:
Barry Yip 2025-05-15 00:56:36 +08:00
parent dfd8e6a724
commit e5fa49080f
1 changed files with 7 additions and 25 deletions

View File

@ -1,7 +1,7 @@
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml # Smithery configuration file: https://smithery.ai/docs/build/project-config/smithery.yaml
version: 1 version: 1
start: startCommand:
type: http type: http
configSchema: configSchema:
type: object type: object
@ -10,28 +10,10 @@ start:
properties: properties:
discordToken: discordToken:
type: string type: string
description: Discord bot token. Obtain this from the Discord Developer Portal. title: "Discord Bot Token"
port: description: "Discord bot token. Obtain this from the Discord Developer Portal."
type: number
description: Port number for the HTTP server
default: 3000
command:
function: |
(config) => ({
command: 'node',
args: [
'build/index.js',
'--transport',
'http',
'--port',
config.port || 3000,
'--config',
config.discordToken
],
env: {
NODE_ENV: 'production'
}
})
exampleConfig: exampleConfig:
discordToken: YOUR_DISCORD_BOT_TOKEN discordToken: YOUR_DISCORD_BOT_TOKEN
port: 3000
build:
dockerfile: Dockerfile