Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.33 KB

File metadata and controls

40 lines (26 loc) · 1.33 KB

Initial Dev Setup

This has to be done once, usually.

Getting Tokens and Stuff

If you already have your DISCORD_CLIENT_ID and DISCORD_TOKEN, you can skip these steps and go straight to Add Bot Config.

Creating an Application

Copy the "Application ID". This is your DISCORD_CLIENT_ID.

Example Application Id

Add a Bot

  1. Go to "Bot" on the left side.
  2. Click "Add Bot" and confirm.

Bot Permissions

Set these permissions:

Needed Bot Permissions

Create a Bot Token

Click on "Reset Token" and copy the token that is generated. This is your DISCORD_TOKEN.

Creating a Token

Add Bot Config

Once you have your DISCORD_CLIENT_ID and DISCORD_TOKEN, you can create a new config and fill in these values:

cp ./config.template.json ./config.json
$EDITOR config.json

The config template is pre-filled with valid values for Coding-Test-Zentrale. If you add new config values, also add them in the config template.

Tip

As the config.json is actually a .jsonc file, it supports comments and trailing commas. If you use VSCode, you can set the syntax mode to JSONC.