Learn to Code via Tutorials on Repl.it!

← Back to all posts
How to make a Discord Bot | Part 1
RocketSpot

How to Make a Discord Bot | Tutorial #1

Intro:

So I am guessing that you want to make a Discord Bot that functions, eh?

Well, your at the right place!

The actual tutorial:

Step #1:

Have a Discord account. To create this bot and test it, you need a discord account. If you already have one, great!

Step #2:

Go to the Developer Portal. You need to go to the portal to create an application, so head on down to the Discord Developer Portal.

If this is your first time creating a bot, you won't see any application. This is how it should look:

If so, good job! Your doing excellent.

Step 3:

Create an application. Click on the blue button on the top right that says, "New Application".

Then name it whatever you want, and make the application "Personal". Than click create! It should look like this:

Step 4:

Create the Bot. On the right part of the page, you should see a lace that is called "Settings" Inside settings, there are many options. Click the option that says, "Bot" Than click the blue "Add Bot" button, and then click the "Yes, do it!" button. This will allow us to create our Discord Bot. Hooray!

Step 5:

Create a server you test to bot. Go to Discord and scroll all the way down on your servers list. Press the plus sign button, name the server, click done, and you have made a server!

Step 6:

Invite the bot. To invite the bot, you need to get the invite link. Use this template: https://discord.com/oauth2/authorize?client_id=CLIENT_ID_HERE&permissions=8&scope=bot

You need to change "CLIENT_ID_HERE" to your bot client ID. You can find it in the Oauth2 section.

Select the server you created and you done. The bot will be offline since we haven't coded it yet.

Conclusion:

Great job! You finished Part 1. I will release Part 2 ASAP. If you have any questions, please put them down in the comments, I'll try to answer ASAP. See you in the next tutorial.

PART 2 CAME OUT! CHECK IT OUT ON MY PROFILE.

Voters
Nathanielx3rd
ThatGhost
remedy
SARAELMESTEKAWY
ElizabethJones1
LakshitCS
MascotGenuine
huahua299
KarambirSingh1
roseliadossanto
Comments
hotnewtop
ch1ck3n

you know 50 upvotes is a lot to ask for

try 5 (no offense but thats how life is)

RocketSpot

@ch1ck3n How about 20?

RocketSpot

@ch1ck3n Yo also, ckncoins are nice. It's a very memey website, no offense.

ch1ck3n

@RocketSpot the average amount of votes a tutorial for a discord bots is 1 from what I've seen

RocketSpot

@ch1ck3n dang ight ill make it 10

ch1ck3n

@RocketSpot ok sure

IMayBeMe

@ch1ck3n can confirm, if it’s not beginner Python or html, it doesn’t get upvotes

ShiftyBoo

@IMayBeMe Just so you know, I have a BASH tutorial out there and it has 13.

IMayBeMe

@ShiftyBoo yeah Ik but those require insane amounts of time to write. Like I mean I have one with 20 something upvotes but it took almost a month to write

ch1ck3n

@IMayBeMe yeah and i am here wondering how this got 13 upvotes

ShiftyBoo

@IMayBeMe good point. I spent like a week and a half.

ruiwenge2

@ch1ck3n wow it actually got to 50

ch1ck3n

@ruiwenge2 kinda sus how it stopped at exactly 50 upvotes too

ruiwenge2

@ch1ck3n 53 now

RocketSpot

@ruiwenge2 yessir

RocketSpot

@ch1ck3n lmao i promise i didnt do anything

RocketSpot

@ruiwenge2 noice it at 63 now at the time i am making this comment

RayhanADev

@ch1ck3n I truly expect more from you smh.

Cycles are not important. Please don't ask for cycles...

@RocketSpot please remove the part where you ask for cycles, otherwise I'll have to unlist this post.

ch1ck3n

@RayhanADev

I truly expect more from you smh.

i thought I gave off a vibrantly low expectation from me

RocketSpot

@RayhanADev ok sorry

RocketSpot
CodingElf66

Idk why so much people are upvoting. And here's a tip for you that I learned from Replit Admins: If you want to make a tutorial, make a huge one at once (what I mean by this is, don't break it up into parts, put together the parts and bond them up into like a mega tutorial). And, one more thing. You shouldn't ask people for upvotes in order for you to make the Part 2 Tutorial on Discord Bots; maybe your tutorial is good and it doesn't reach 10 upvotes, that will be sad :( . Just a little heads up and what to make your tutorial better next time, just a tip!

RocketSpot
ThatGhost

bro what is the point in making 2 tutorials. ppl could learn how to do this (and more) in 5 minutes. plus half of the tutorial is stuff you already know how to do (if you have discord).

RocketSpot

@ThatGhost I wanna see your bot

I bet it won't be as good as this.

Skripthut

@RocketSpot What are you referring to when you say "this?"

ThatGhost

@Skripthut his bot that doesnt work duh

RocketSpot
RocketSpot

@Skripthut the tutorial

ThatGhost

@RocketSpot you didnt code it, and you probably didnt do that much in part 2

RocketSpot

@ThatGhost How did I not code it, and i made 2 commands and made the whole bot.

ThatGhost

@RocketSpot making the discord application is not coding

ThatGhost

@RocketSpot making 2 commands is, but one is 100% ping pong

RocketSpot

@ThatGhost well i was letting them set the bot up, if they were a beginner to discord

Skripthut

@RocketSpot ThatGhost is saying you didn't code this tutorial, which you didn't. "I bet it won't be as good as this tutorial" also doesn't make sense in that context, so I'm not sure you understood what I said.

RocketSpot

@ThatGhost at least it shows the ping :|

and it was just getting started with the code, i gotta go easy on them first

RocketSpot

@Skripthut but i did code it...

Skripthut

@RocketSpot Oh my goodness...

What did you code? This tutorial has no code, what are you saying?

RocketSpot

@Skripthut Check part two

Skripthut

@RocketSpot "part two" is not "this tutorial." You say "learn to read," but can you?

RocketSpot

@Skripthut I know, this is part one of setting up the bot. Part 2 is the coding. Yes I can read.

Nathanielx3rd

@ThatGhost Damn why are people like this? Like bruh why do you have to be so mean? It isn't fair, he did his best and made a tutorial why are you being like this?

ThatGhost

@Nathanielx3rd the topic has already been settled and there is no reason to drag it on :)

Nathanielx3rd

@ThatGhost Oh ye I just read the entire conversation, lol I just read ur comment I didn't read the whole thing. Apologies 🙏

RocketSpot

@Nathanielx3rd It's fine he is chill now lol

RocketSpot

@Nathanielx3rd Alright that's fine

Nathanielx3rd

@RocketSpot Pretty sure he's not chill but glad he finally calmed down.

ThatGhost

@Nathanielx3rd no need to continue the conversation, i said sorry and we handled it pretty well, if you continue to drag it on it will just cause more drama and more arguments.

Nathanielx3rd

@ThatGhost

Took a second to find, didn't realize it was on another message sheesh. I'm late to this.

RocketSpot

@Nathanielx3rd ye he is chill we talk sometimes and i make his bots dashboard

RocketSpot

@ThatGhost ok thats true

RocketSpot

@Nathanielx3rd breh just please stop talking about this rn

Nathanielx3rd

@RocketSpot add me on the Discord : Nathanielx3rd#1256

Huh so rivals turned friends, wow that's epic.

So I didn't know this convo was on another message so I just assumed the convo just abruptly broke off.

Yes we can stop talking about this/

RocketSpot

@Nathanielx3rd ok good thanks and yes ill add u

RocketSpot

@Nathanielx3rd I added u

Nathanielx3rd

@RocketSpot i'll accept when my parental control unlocks ok

Nathanielx3rd

btw @RocketSpot any tips to get upvotes cause u have alot and i have little

RocketSpot
RocketSpot

@Nathanielx3rd I ask but they say that they gonna delete this

Nathanielx3rd

@RocketSpot how to get upvotes though>>>>?

RocketSpot

@Nathanielx3rd just post something good like a tutorial or something people like

Nathanielx3rd

@RocketSpot I spent like over 3 hours on each of my 4 tutorials. and the most I get is less than 10 one of them is 16

RocketSpot

@Nathanielx3rd oof. try making something interesting.

Nathanielx3rd

@RocketSpot I recently posted my website and a project i made in share section I got decent support thx for the tip.

RtoonTV

i helped you reach ten upvotes

RocketSpot

@RtoonTV Thanks, but that isn't allowed if you use alt accounts.

RtoonTV

@RocketSpot what do you mean

RocketSpot

@RtoonTV Did you only use this account for upvoting?

CodingElf66

@RocketSpot Uhh I think that was what he meant by that in the first place. Or maybe he means that he got ten people he knew (that aren't puppet accounts) to upvote it too, maybe he persuaded them idk. He makes them sound like he has 10 accounts on Replit, wow

RocketSpot

@JeffreyChen13 True. Thanks for explaining!

CodingElf66
ruiwenge2

why so many upvotes?

RocketSpot

@ruiwenge2 Maybe it is because they want to learn :/

(Btw, I love all of your work and projects, keep up the great work man.)

ruiwenge2

@RocketSpot lol thanks

RocketSpot

@ruiwenge2 Also, happy late birthday, if I was late by any chance.

ruiwenge2

@RocketSpot its fine

ThatGhost

@RocketSpot learn what you didnt do anything in the tutorial lol

RocketSpot

@ThatGhost I explained the code, learn to read

ThatGhost

@RocketSpot the entire tutorial is the developer portal, no code.

ThatGhost

@RocketSpot learn to read

RocketSpot

@ThatGhost bro this is the first part to setup the bot, dumbass

ThatGhost

@RocketSpot you dont get the point

ThatGhost

@RocketSpot the whole point is you shouldnt have added the pay wall, and then you lie saying you explained the code in the tutorial when there is no code. again, why make the tutorial when people could learn this and actually make their bot work in less than 5 minutes. plus why add the paywall of likes, they are pointless and useless, it wouldve been easier to have part1 and 2 in one tutorial

VXZELL12345

@ThatGhost i agree with you, maybe just make a tutorial about stuff that most people don't know.

ThatGhost

@VXZELL12345 apparently common sense is not to common - me when @RocketSpot made this tutorial

Skripthut

@ThatGhost I'm pretty sure repl.it's "View examples" in an empty Node.JS file explains more than this.

ThatGhost

@Skripthut i mean, your not wrong XD

ThatGhost

@Skripthut is it weird that he actually joined my discord server

Skripthut

@ThatGhost I'm not sure... did they say anything?

ThatGhost

@Skripthut no,i just banned him lol

RocketSpot

@ThatGhost you told me to see your bot...

bruh

RocketSpot

@ThatGhost bro look at the second tutorial, than say it is functionless

RocketSpot

@ThatGhost plus, i am still in the making of the tutorial

ThatGhost

@RocketSpot that wouldve not been true if you had been smart and put it all in one tutorial

ThatGhost

@RocketSpot didnt think you would actually join. if you wanna see it the repl is public on my account

RocketSpot

@ThatGhost fine, in tutorial 3, ill put all of the commands that i have left for the tutorial

RocketSpot

@ThatGhost ok ill check it out :|

ThatGhost

@RocketSpot whatever 😒

RocketSpot

@ThatGhost Hmm, the bot is very nice. Yours seems to be more of a moderation, while mines is a utilities. kinda different, almost the same. But pretty nice bot!

RocketSpot

@ThatGhost ok, goodluck with your dashboard

ThatGhost

thx you too, sorry if i pissed you off, didnt mean too
@RocketSpot

ThatGhost

@RocketSpot i wanna do some utilities, economy, and games, I have another bot which is for music but its 💩 so idk what imma do with it

RocketSpot

@ThatGhost naa its fine

omfg the CSS and style on the dashboard looks so nice

RocketSpot

@ThatGhost i got some code for an economy + moderation bot. you want it from that? add me on discord: RocketSpot#0001

ThatGhost

@RocketSpot really? i suck with css, i just took my favourite color and messed around

the button animation is due too the transition in the stylesheet

ThatGhost

@RocketSpot no thanks, i got an idea for economy. thanks for the offer tho

RocketSpot

@ThatGhost oh ok

bro your css is so nice

RocketSpot

@ThatGhost your welcome

(its got a lot of commands lmao)

ThatGhost

@RocketSpot (ive seen worst XD my friend has a bot that has like 200-300 commands)

ruiwenge2

@ThatGhost Gahhh!!! 58 notifs :/

ThatGhost

@ruiwenge2 sorry 😂

RocketSpot

@ThatGhost my friend has a bot that has a working dashboard with a bot that has over 200 commands

RocketSpot

@ruiwenge2 Sorry :(

ThatGhost
RocketSpot
ThatGhost

@RocketSpot i wanna make like a roles shop
like you get coins from answering qotds and winning games, and you can use those coins to buy roles which can give you benefits

RocketSpot

@ThatGhost ok but can you add me on discord. i may have some good ideas and code for you :|

ThatGhost

@RocketSpot oh yeah i forgot, lemme do that rq, im ThatGhost#9215

ThatGhost

@RocketSpot its pending

RocketSpot
Nathanielx3rd

For new people use this : https://discordapi.com/permissions.html/
It is a permission calculator where you can select which to use, there is a default one from Discord but I find it annoying to use. Btw I am one of the main developers of Wick Bot and Arbotix, both verified bots.

RocketSpot

@Nathanielx3rd Thank you so much. Nice job on developing verified bots, hope they become really successful.

CodingElf66

Thanks cool! But did you post Part 2?

RocketSpot

@CodingElf66 I did! Check it out on my profile in the posts section.

JuanCarlos32

When will part 2 be ready?

RocketSpot

@JuanCarlos32 It is already out!

RandomEevee

For me it displays Oauth application does not have a bot
What do I do?

RocketSpot

@RandomEevee Can you show me a screenshot?

RandomEevee

@RocketSpot idk it works now xD

RocketSpot

@RandomEevee Alright, thanks for letting me know!

ThatGhost

@RandomEevee watch a yt tutorial this guy is a waste of time

RocketSpot

@ThatGhost I thought of maybe adding a dashboard for this bot but it seems like a waste of time for you.

ThatGhost

@RocketSpot 1. The point of the tutorial is that you teach them, it is fine to give credit and even ask for stuff, but forcing it onto them, say like a pay wall of likes, is a waste of time.

I didn't say anything about the bot was a waste of time, esoecially a dashboard, but the tutorial is a waste of time. What's the point in making a tutorial with a pay wall of pointless and useless likes when they can learn all that information and more in less than 5 minutes.