diff --git a/Dockerfile b/Dockerfile index f3f1842..c8c99f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,9 @@ COPY . . # Build the TypeScript code RUN npm run build +# Set environment variable for Discord token +ENV DISCORD_TOKEN="" + # Expose HTTP port EXPOSE 8080 diff --git a/smithery.yaml b/smithery.yaml index 015e258..64034e1 100644 --- a/smithery.yaml +++ b/smithery.yaml @@ -1,10 +1,13 @@ startCommand: - type: http + type: stdio configSchema: type: object - required: ["discordToken"] + required: + - discordToken properties: discordToken: type: string - title: "Discord Bot Token" - description: "Discord bot token. Obtain this from the Discord Developer Portal." \ No newline at end of file + description: The bot token for Discord integration. + commandFunction: + |- + config => ({command: 'node', args: ['./build/index.js', '--transport', 'http', '--port', '8080'], env: {DISCORD_TOKEN: config.discordToken}}) \ No newline at end of file