Skip to content

Creating and Inviting a Bot

Larry edited this page Sep 11, 2022 · 2 revisions

Creating a bot(s)

You must repeat this step for each server you wish to track.

First, navigate to Discord's Developer Portal, and create a new Application by selecting New Application in the top right of the page, and give your application a name:

image

After you have created an Application for your discord bot, you will need to navigate to the Bot tab, and click Add Bot:

image

After you have created your bot and named it, you will need to copy the bot's Token into your config by replacing DiscordTokenHere with your bots token.

**Please note: If you don't see a token, and only see a Reset Token button. You may need to reset the token to get it to show.

image

image

Invite Your Bot

After all configuration steps have been taken, we must start the bot and invite them into our discord. The bot needs no special permissions due to its responsibility being to update its status. In order to invite your discord bot, you must replace {clientID} with your bots client ID in the URL below, this means you must also remove the curly braces too. If you do not know where to obtain your bot's client ID, navigate to the General Information tab on the Discord Developer Portal the bot you wish, and copy your Client ID from there.

https://discord.com/oauth2/authorize?client_id={clientID}&scope=bot

Example URLs

These invite links are to the PlayerCountDiscordBot tests. I use these for development, and sometimes leave them running in a docker instance on a server as long-running tests.

Name Link
Steam Link
CFX Link
Scum Link
Minecraft Link
Battle Metrics Link