Skip to content
a-sync edited this page Aug 20, 2024 · 10 revisions

How to get it

  1. create an app on the developer portal https://discord.com/developers/applications
  2. go to Application > Settings > Bot and create the bot for your application
  3. under the bots name you should see a token or an option to reset the token
    discord bot token

Inviting the bot and giving permissions

  1. go to Application > Settings > Bot
  2. under Privileged Gateway Intents check message content intent
  3. under Application > Settings > OAUTH2 > URL generator check bot from scopes, then create bot invite link with the following permissions: View Channels, Send Messages, Embed Links, Read Message History, Add Reactions (85056)
  4. copy and open the generated URL with your browser to invite the bot to your servers (guilds)
    discord bot invite url

Environmental variables

Set your token as the value of the DISCORD_BOT_TOKEN env var to enable discord bot features.

GSW Control Panel options

Each server can have multiple channels to post and update the server status message to. The channels are identified by the channel ID.
The simplest way to get a discord channel ID is to enable developer mode in settings, then right clicking on the channel name will give you the Copy ID option.