-
Notifications
You must be signed in to change notification settings - Fork 186
Discord Bot Setup and Configuration
L4GSP1KE edited this page Mar 13, 2023
·
5 revisions
-
Create/Obtain a Discord Server where you have the permissions to:
-
Invite the bot
-
Create a private text channel for you (and the bot)
I made a new server for this purpose
-
-
Invite your bot to above Discord Server:
- Visit the discord developer portal
- Create a New Application and add it to your Personal Team
- Go to the Bot page for your application (sidebar)
- Add Bot
- Here you can set the Bot's Username and Icon
- **SAVE YOUR
TOKENFOR LATER - No other options are necessary, however I recommend disabling the Public Bot switch
- **SAVE YOUR
- SAVE
- Go to the OAuth2 page for your application (sidebar)
- Copy the
CLIENT ID - Replace your
CLIENT IDwith the one in the URL below:-
https://discord.com/oauth2/authorize?client_id=
123456789123456789&scope=bot&permissions=388160
-
https://discord.com/oauth2/authorize?client_id=
- Visit the modified URL in your browser and add your Bot to your Discord Server
-
Properly edit the
DISCORDsection of data/config.json- Your
discord_bot_tokencan be found in your discord developer portal if you didn't save earlier - The
discord_bot_descriptioncan be whatever you like - The
command_prefixis what you type before a command. e.g. ("." for .upload, or "!" for !upload) - To obtain your
discord_channel_idandadmin_idyou must have Developer Mode turned on in your Discord client- To turn on Developer Mode, open your User Settings > Advanced > Developer Mode
- To get the
discord_channel_id, right click on the text channel and Copy ID. This ensures the bot can only execute commands from this text channel - To get the
admin_id, right click your name from the user bar and Copy ID. This ensures that the bot only listens to your reactions.
-
search_diris a path to your downloads directory. This is used as the place to search when using !search. -
discord_emojis:- By default I have unicode emojis since they work on any server.
- If you wish to use custom emojis, first add them to your server and then find their id by sending them in chat prefixed by a \ (
\:emoji:). If done correctly you will see something that looks like<:emoji:123456789>. Copy and paste that into your configuration.
- Your