Update smithery.yaml
This commit is contained in:
parent
eea277913c
commit
04b9e81ec7
|
@ -9,9 +9,9 @@ startCommand:
|
||||||
type: http
|
type: http
|
||||||
configSchema:
|
configSchema:
|
||||||
type: object
|
type: object
|
||||||
required: ["DISCORD_TOKEN"]
|
required: ["discordToken"]
|
||||||
properties:
|
properties:
|
||||||
DISCORD_TOKEN:
|
discordToken:
|
||||||
type: string
|
type: string
|
||||||
title: "Discord Bot Token"
|
title: "Discord Bot Token"
|
||||||
description: "Discord bot token. Obtain this from the Discord Developer Portal."
|
description: "Discord bot token. Obtain this from the Discord Developer Portal."
|
||||||
|
@ -20,8 +20,8 @@ startCommand:
|
||||||
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'],
|
||||||
env: {
|
env: {
|
||||||
DISCORD_TOKEN: config.DISCORD_TOKEN
|
DISCORD_TOKEN: config.discordToken
|
||||||
}
|
}
|
||||||
})
|
})
|
Loading…
Reference in New Issue