diff --git a/README.md b/README.md index 55288ea2..3177934b 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,7 @@ To get a local copy of the project up and running, follow these steps: # Discord Bot DISCORD_CLIENT_TOKEN= DISCORD_CLIENT_SECRET= + DISCORD_CLIENT_ID= # Database MONGO_URL= @@ -120,6 +121,7 @@ Before running the project, you need to set up the following environment variabl | GITHUB_AUTO_DEPLOY_SECRET | Secret for GitHub auto-deployment webhook verification | No | RandomString | | DISCORD_CLIENT_TOKEN | Token for Discord bot integration | Yes | DiscordToken | | DISCORD_CLIENT_SECRET | Secret for Discord bot integration | Yes | DiscordSecret | +| DISCORD_CLIENT_ID | Client ID for Discord bot integration | Yes | DiscordClientID | | MONGO_URL | URL for MongoDB database connection | Yes | mongodb://localhost:27017/mydatabase | | S3_BUCKET_NAME | Name of the AWS S3 bucket for Cloudflare R2 | Yes | BucketName | | S3_ACCESS_KEY_ID | AWS access key ID for Cloudflare R2 | Yes | AccessKeyID | diff --git a/server/.example.env b/server/.example.env index f738df1c..374d3c0e 100644 --- a/server/.example.env +++ b/server/.example.env @@ -9,6 +9,7 @@ GITHUB_AUTO_DEPLOY_SECRET= DISCORD_CLIENT_TOKEN= DISCORD_CLIENT_SECRET= +DISCORD_CLIENT_ID= # Database diff --git a/server/config.yml b/server/config.yml index 946c9d89..d48ea404 100644 --- a/server/config.yml +++ b/server/config.yml @@ -1,4 +1,3 @@ -discordClientId: '1207874300070199356' discordScopes: - 'identify' botPresenceStatus: 'online' diff --git a/server/src/server.js b/server/src/server.js index 02e660b0..8ae559de 100644 --- a/server/src/server.js +++ b/server/src/server.js @@ -99,7 +99,7 @@ module.exports = class Server { createDiscordAuth() { const Strategy = new DiscordStrategy({ - clientID: config.discordClientId, + clientID: process.env.DISCORD_CLIENT_ID, clientSecret: process.env.DISCORD_CLIENT_SECRET, callbackURL: '/auth/callback', scope: config.discordScopes