-
Notifications
You must be signed in to change notification settings - Fork 25
Discord Setup
spikeydragoon edited this page Sep 25, 2022
·
4 revisions
You have to create a discord bot user to get the token and to be able to add the bot to your discord server.
- You need to go to the Discord Developers section here and click
Create an Application
- Now name your bot then hit
Save Changes
. If you want you can provide a picture and you can give your bot a description that will show up in the bots profile however this is not needed. The name given and picture is what will show up in your discord channel when the bot is online. - On the left Click
Bot
then clickAdd bot
. Confirm by clickingYes, do it~
- Now you can get your bot's token by using the
click to reveal token
button. Note this is special and shouldn't be shared with anyone. Anyone that has this token can use it to mess with your discord server and bot. If you already gave your token to someone then go back to where it says click to reveal and clickRegenerate
. - Paste the bot token in the
_configuration.json
file where it saysDiscordBotToken
- NEW!!!! Discord now requires you to check the Message content intent option under the bot tab for it to pull in the chat from discord. If you do not check that option then it will only be able to pull your discord name and nothing else. While not required if you update discord roles often you can check the server members intent and presence intent for the bot to see a role changes faster for rcon commands.
You now have to add the bot to your discord server and give it permissions.
- You need to go to the Discord Developers section here and click on the bot you created in the steps above.
- Under General Information copy the Client ID.
- In your browser type in
https://discord.com/api/oauth2/authorize?client_id=You_Client_Id_Here&permissions=0&scope=bot
Replace where it says You_Client_Id_Here with the Bot Client ID that you copied above. Examplehttps://discord.com/api/oauth2/authorize?client_id=123456789&permissions=0&scope=bot
- Once this page loads up select the server you want to add the bot to. Note you must have the Manage Server permission on the server you are trying to invite the bot to.
- Click
Authorize
You have to enable developer mode in discord user settings to be able to get channel ids.
- With discord open press the user settings icon (Gear icon at bottom left of discord)
- Under App Settings section select the Advancedtab.
- Next to developer mode press the button to turn it on.
- Press the X to return to your discord server.
- Right click a discord channel and select copy id. This will put the channel id in your clipboard so you can paste it into the config file. Note you can only paste one channel id at a time.
Thats it you can now proceed with step 4 in the getting started section and set up your _configuration file.