Skip to content

Create Discord server and bot

Connor Schweighöfer edited this page Mar 21, 2024 · 10 revisions

Overview

This tutorial shows how to create your own Discord server and a Discord bot, which can then be connected to a program, like the TJ-Bot.

Prerequisites

What you will learn

  • create your own Discord server
  • create a Discord bot
  • add the bot to your server

Tutorial

Discord Server

As first step, you need to create your own Discord server. This is surprisingly easy. We use Discord's server template feature for this, this way you don't have to create all the channels, roles and more on your own. You can still modify the servers channels and roles after creation, as it's only a template.

This can be done using the following link.

  1. Open the URL from above
  2. Follow the dialog and enter details
    2.1. Upload a picture
    2.2. Enter a name
    2.3. smack the Create button
  3. boom! you have your own Discord server 🎉

Server details Server created

Discord Bot

Next up, you want to create your own bot.

  1. visit the Discord Developer Portal
  2. click on New Application
    2.1. enter the name for the bot
  3. on the General Information tab
    3.1. enter a name, description and upload a picture
    3.2. hit Save Changes
  4. on the Bot tab
    4.1. click on Add Bot
    4.2. hit the Yes, do it! button
    4.3. you can now see your bots Token, you will need this when connecting the bot to a program later
    4.4. enable the Server Members Intent
    4.5. enable the Message Content Intent
  5. on the OAuth tab
    5.1. select the Bot and applications.commands Scopes
    5.2. select the desired Bot permissions, e.g. Send Messages, Read Message History, Add Reactions, Use Slash Commands
    5.3. from the Scope section, copy the URL it generated, this is the bots invite link

New Application enter application name enter application details Add Bot Confirm add bot Token Enable Intents scopes Bot permissions url

Add bot to server

Last but not least, you have to add the bot to the server you just created.

  1. open the bots invite link URL in a browser
    1.1. select your server to add the bot
    1.2. click Continue
    1.3. click Authorize
  2. thats it, your bot was now added to the server! 🎉

Add bot Authorize bot added

What next?

Now that have your own server and your own Discord bot and both are connected to each other, you can start to create or run an actual bot-program, such as TJ-Bot and give it your bots token!

Once the program has your token, it will connect to the bot and you can interact with it from your server.

You can learn about these steps in the following guide:

bot example

Clone this wiki locally