Update smithery.yaml
This commit is contained in:
parent
02389fc9f0
commit
eea277913c
|
@ -9,8 +9,7 @@ startCommand:
|
||||||
type: http
|
type: http
|
||||||
configSchema:
|
configSchema:
|
||||||
type: object
|
type: object
|
||||||
required:
|
required: ["DISCORD_TOKEN"]
|
||||||
- DISCORD_TOKEN
|
|
||||||
properties:
|
properties:
|
||||||
DISCORD_TOKEN:
|
DISCORD_TOKEN:
|
||||||
type: string
|
type: string
|
||||||
|
@ -18,8 +17,11 @@ startCommand:
|
||||||
description: "Discord bot token. Obtain this from the Discord Developer Portal."
|
description: "Discord bot token. Obtain this from the Discord Developer Portal."
|
||||||
exampleConfig:
|
exampleConfig:
|
||||||
DISCORD_TOKEN: YOUR_DISCORD_BOT_TOKEN
|
DISCORD_TOKEN: YOUR_DISCORD_BOT_TOKEN
|
||||||
commandFunction: |
|
commandFunction: |
|
||||||
(config) => ({
|
(config) => ({
|
||||||
command: 'node',
|
command: 'node',
|
||||||
args: ['build/index.js', '--transport', 'http', '--port', '8080', '--config', config.DISCORD_TOKEN],
|
args: ['build/index.js', '--transport', 'http', '--port', '8080', '--config', config.DISCORD_TOKEN],
|
||||||
|
env: {
|
||||||
|
DISCORD_TOKEN: config.DISCORD_TOKEN
|
||||||
|
}
|
||||||
})
|
})
|
Loading…
Reference in New Issue