This is the Discord bot for this Discord server template.
Demo @ https://discord.gg/dSRZrZhrPf
First, create a new application in the Discord Developer Portal.
After that, go the "Bot" section on the left side and enable all Priviledged Gateway Intents.
Then, you have to get a bot token in order to log into your bot using code. You can get a bot token by pressing the "Reset Token" button.
Now, rename the example.env
file to .env
and paste the token.
TOKEN =
Now, go to the "OAuth2" section and click the "bot" scope and then then click the "Administrator" permission.
The last step is to copy the generated URL, paste it into your browser search bar and choose the server you want to add the bot to. Please note that you need the MANAGE_SERVER
permission to add the bot.
Also, make the bot's role the highest in the server (as shown in the image below).
NOTE: You can skip this section if you already have Python and Git installed.
In order for the bot to work, you need the programming language Python. This bot is written using Python 3.10.8. To install it, just scroll down and look for the installer for your operating system. After that, just follow the setup process.
You will also need Git to clone this repository. Head over to the downloads section, choose the installer for your operating system and follow the setup process.
To make sure the bot is working, you need to rename the example.config.json
file to config.json
and replace the example values with yours. Explanation of the values:
{
"verification_channel_id": "The channel ID of the channel for the verification message (NOT IN QUOTATION MARKS)",
"verified_role_id": "The role ID of the role that is given to the user when verifying (NOT IN QUOTATION MARKS)",
"moderator_role_id": "The role ID of the moderator role (NOT IN QUOTATION MARKS)",
"admin_role_id": "The role ID of the admin role (NOT IN QUOTATION MARKS)",
"ticket_opening_channel_id": "The channel ID of the channel for opening a ticket (NOT IN QUOTATION MARKS)",
"ticket_category_id": "The category ID of the category for the ticket channels (NOT IN QUOTATION MARKS)",
"tempvoice_creation_channel_id": "The channel ID of the channel for the temporary voice channel creation (NOT IN QUOTATION MARKS)",
"tempvoice_creation_category_id": "The category ID of the category for the created temporary voice channels (NOT IN QUOTATION MARKS)",
"ticket_logging_channel_id": "The channel ID of the channel for ticket logging (NOT IN QUOTATION MARKS)",
"moderation_logging_channel_id": "The channel ID of the channel for moderation logs (NOT IN QUOTATION MARKS)",
"message_logging_channel_id": "The channel ID of the channel for moderation logs (NOT IN QUOTATION MARKS)"
}
For cloning the repository, run:
git clone https://github.com/vxsualized/discord-server-template
You can then access the folder by using:
cd discord-server-template
We are using pip, the Python package manager, for installing the dependencies. For simplicity, this repository contains a requirements.txt
file that contains all required packages. To install all the packages, simply run:
pip install -r requirements.txt
To start the bot, simply run:
python main.py
Please note that the command can vary depending on you operation system. Just use your favourite search engine and look it up for your operating system.