- Fork the repository and clone it to your workstation.
- Create a
.envfile and copy the contents of.env.exampleinto it. - Configure env variables
- Create a new Discord bot in the developer portal and paste the token as
DISCORD_HASH - (optional) Go to your Github Settings and create a personal access token with the scope "gist", and paste the token as
GITHUB_TOKEN - (optional) Request access token for Amplitude metrics from vcarl#7694 and paste the token as
AMPLITUDE_KEY
- Create a new Discord bot in the developer portal and paste the token as
- Configure your Discord bot permissions
- Toggle off the "Public Bot" switch and save.
- Grant "Server members intent" permission
- Grant "Message content intent" permission
- Go to the OAuth2 Tab and choose the "bot" scope.
npm installnpm run start
Adding a new environment variable needs to be done in several places to work corectly and be predictable for new developers
- Your own
.env(and restart your dev server) - Add a suitable example to
.env.example - The action in
.github/workflows/node.js.yml - The Kubernetes config under `cluster/deployment.yml