How to Build a Discord Bot

  Рет қаралды 216,279

Beyond Fireship

Beyond Fireship

Күн бұрын

Join the Fireship Discord Server / discord
Learn how to build your own discord bot from scratch with JavaScript and deploy it to the cloud in this beginner friendly tutorial.
#javascript #discord #tutorial

Пікірлер: 227
@shateq
@shateq Жыл бұрын
This dude covered 30-ten minute long video series in 4 minutes 😂
@autumndev
@autumndev Жыл бұрын
Well, serverless is possible if you only need a bot to do slash commands which is a valid use case
@ocean3323
@ocean3323 Жыл бұрын
Interactions not only slash commands (message components and context menus, modals also)
@hrvs
@hrvs Жыл бұрын
Well, telegram bot are very easy to deploy in serverless environment. I built a Telegram Bot with Deno and deploy it in Deno Deploy and it is just blazingly fast.
@lapraswastaken
@lapraswastaken Жыл бұрын
currently working on a Python library that focuses solely on Discord interactions! the timing for this video is pretty funny
@arkayv
@arkayv Жыл бұрын
@@hrvs *ThePrimagean intensifies*
@h.hristov
@h.hristov Жыл бұрын
How would that work if it requires a persistent connection?
@parker02311
@parker02311 Жыл бұрын
I love watching videos about creating Discord bots even know I have made multiple. This content is just so satisfying to watch.
@RedCrafter07
@RedCrafter07 Жыл бұрын
Finally, we've been waiting for so long 😂 Great video as always, please keep doing this, you help out so many people (including me). Thanks for that!
@beyondfireship
@beyondfireship Жыл бұрын
Let's chat. UPDATE: Thanks for boosts, we have a custom link now discord.gg/fireship
@Denny-77
@Denny-77 Жыл бұрын
less goo!!!!!
@Kat21
@Kat21 Жыл бұрын
😮
@wppq6944
@wppq6944 Жыл бұрын
Is there a particular reason why this comment isn't pinned?
@jamesprentor8433
@jamesprentor8433 Жыл бұрын
This is perfect timing! I am just working on a discord server for a product I am making and here comes fireship with the discord bot video!
@tymianek
@tymianek Жыл бұрын
4:33 well, I don't think I can ask you any questions when activity is super high and slowmo is 25sec. Your videos are amazing, keep doing them 🔥
@eternalgamer496
@eternalgamer496 Жыл бұрын
I just logged into KZfaq to learn how to make a discord bot and your video popped up in my recommendations, Just the thing I needed. Although I was planning to use Python for the bot I changed my decision to use Node instead
@nicetrooper2
@nicetrooper2 Жыл бұрын
keep up the amazing work🙌
@gducrash
@gducrash Жыл бұрын
My favorite part was when Jeff said "it's Discord time" and botted all over the servers. Definitely one of the tutorials of all time ever!!
@makkusaiko
@makkusaiko Жыл бұрын
Definitely one of the comments of all time
@mirzazplayz_rblx
@mirzazplayz_rblx Жыл бұрын
Literally the best tutorial of discord bot making damnn
@lucasguimaraes7041
@lucasguimaraes7041 Жыл бұрын
I absolutely loved the “create your own discord bot” experience. I built mine using Heroku + DialogFlow 2+ years ago. Such a cool memory !
@yeppiidev
@yeppiidev Жыл бұрын
ah yeah heroku, remember using it to create server side apps. unfortunately they stopped giving free tiers
@arjittw
@arjittw Жыл бұрын
Do not take servers too seriously, you will someday get out of free tear - Arjit Tiwari
@coolguy1083
@coolguy1083 Жыл бұрын
@@yeppiidev so sad my first app on heroku was a discord bot
@vabtech7627
@vabtech7627 Жыл бұрын
@@yeppiidev What are the alternative options nowadays?
@yeppiidev
@yeppiidev Жыл бұрын
@@vabtech7627 hmm i haven't done much backend development to know that but repl.it provides some stuff you can use to run things server side
@yasanduseenapatabendige9108
@yasanduseenapatabendige9108 Жыл бұрын
Few months ago I made a discord bot for my discord server with python(nextcord) and it was awesome. I learned many things from it and it encouraged me to keep coding. BTW I am really happy you made a discord server
@JamesBezza01
@JamesBezza01 7 ай бұрын
hey you probably wont respond but can you help me learn to make a bot
@detective_solar
@detective_solar 3 ай бұрын
@@JamesBezza01 I at least will respond. What type of bot do you want to make?
@ezra6094
@ezra6094 Жыл бұрын
I was just thinking about making a discord bot, you're a mind reader!
@amrelmohamady
@amrelmohamady Жыл бұрын
The Builder Pattern is my favorite!
@nicolasramos7084
@nicolasramos7084 Жыл бұрын
Great as usual. I would love to see a 'How to build a Twitch extension' video
@flamableassassin5105
@flamableassassin5105 Жыл бұрын
1:55 I'm really sorry but you are kind of wrong you are able to build bots with server-less functions (discord has an example on their docs for cloudflare workers). However you will only be able to receive interaction events not any other event. Keep up with the amazing vids tho
@beyondfireship
@beyondfireship Жыл бұрын
Good call, yeah serverless will work in certain cases.
@krishgarg2806
@krishgarg2806 Жыл бұрын
@@beyondfireship yeah it works on interaction model with webhooks like system
@hrvs
@hrvs Жыл бұрын
Telegram Bots works amazing in serverless environment.
@azeemhaider5278
@azeemhaider5278 Жыл бұрын
Didn't App Engine standard automatically shutdown when no incoming request? It means bot can't listen events after a shot time. How you are managing it on App Engine
@mghq-mobilegamerzhq2533
@mghq-mobilegamerzhq2533 Жыл бұрын
Wish this came out 2 weeks earlier, love this though!
@deepshah2305
@deepshah2305 Жыл бұрын
Gonna be 1M subscribers in a Month 🔥🔥
@awhux
@awhux Жыл бұрын
nice video mate
@developerpranav
@developerpranav Жыл бұрын
Thanks for the tutorial :D BTW why does the video have 480p as the max res?
@dendysaptoadi9652
@dendysaptoadi9652 Жыл бұрын
its very easy when you explain it
@mattplaygamez
@mattplaygamez Жыл бұрын
Good video. "Follow the principal of least privilege"
@YuriG03042
@YuriG03042 Жыл бұрын
when you said you were going to create your bot from scratch, i thought you were actually going go reinvent this wheel, but then you imported discord.js lol glad to know you aren't crazy
@YuriG03042
@YuriG03042 Жыл бұрын
guild messages is a privileged intent, you shouldn't ask for that intent or rely on it anymore as discord will only approve those requests on case by case. just use interactions for everything
@YuriG03042
@YuriG03042 Жыл бұрын
you listed to event messageCreate but then show a screenshot of the bot replying to an interaction wtf???
@MentorMode
@MentorMode Жыл бұрын
Awesome 👍
@returnZeroo
@returnZeroo Жыл бұрын
props to you.
@BarryPLAYz
@BarryPLAYz Жыл бұрын
I did this in 2020 because nothing existed to automatically assign a role based on email verification. It was a pretty fun project.
@parmajohn238
@parmajohn238 Жыл бұрын
0:12 you got me - you really got me
@GrzyPiks
@GrzyPiks Жыл бұрын
I'm pretty sure you will have the best tutorials (and shortest) about “how to make *good* discord bot”
@user-gm3eo1dp1y
@user-gm3eo1dp1y Жыл бұрын
Our helpline⬆️ Contact me ⬆️
@crupayan
@crupayan Жыл бұрын
I generally use builder patterns while coding and when you that that you are not a fan of that, it got me really curious to know you thoughts. Maybe can you elaborate on what is the thing builder pattern lacks, and which pattern you use personally for most cases. Thanks :-)
@Andressuquaz156
@Andressuquaz156 Жыл бұрын
X2, personally I find the builder pattern really useful and readable, can simplify the sometimes complex way of building objects.
@yss64
@yss64 Жыл бұрын
wow I'm early!!
@nathanwatson296
@nathanwatson296 Жыл бұрын
Lol same
@i3looi2
@i3looi2 Жыл бұрын
Building a Discord bot is easy. Keeping it from taking over the world .. now that's a challenge !
@sage_gamers
@sage_gamers Жыл бұрын
Please make video on your journey as a developer and the ups-downs you faced. btw love watching your video and it inspires a lot ^⁠_⁠^ I'm not a bot
@detective_solar
@detective_solar 3 ай бұрын
That's probably what a bot would say
@TheSkyCries1
@TheSkyCries1 Жыл бұрын
My God.. the discord notification noices triggered me. I can't resist checking if there is actually a message. Great video though :D
@clean7886
@clean7886 Жыл бұрын
Thanks Brother
@harvanchik
@harvanchik Жыл бұрын
I didn't realize how easy it is. Definitely will try making my own bot soon!
@R80QZ
@R80QZ Жыл бұрын
He lost me at the coding part
@Nesha_duncan
@Nesha_duncan 11 ай бұрын
@@R80QZ this fr
@eliasmangoro413
@eliasmangoro413 Жыл бұрын
Great video! but why don't you like the builder pattern?
@richasrivastava7739
@richasrivastava7739 Жыл бұрын
The most fireship way of announcing the discord
@user-gm3eo1dp1y
@user-gm3eo1dp1y Жыл бұрын
Our helpline⬆️ Contact me ⬆️.
@evildoer1606
@evildoer1606 Жыл бұрын
Why you are not a fan of builder pattern? What do you prefer to solve lots of parameters in the constructor/constructors?
@morganjennings3164
@morganjennings3164 Жыл бұрын
It,s so so good 😀🤘🏼
@PatrickAlphaC
@PatrickAlphaC Жыл бұрын
Question, are you still editing all your videos? The edits are so clean.
@PatrickAlphaC
@PatrickAlphaC Жыл бұрын
@@jujimufi472 fireship is just too good
@victorhenriquecollasanta4740
@victorhenriquecollasanta4740 Жыл бұрын
that's the man! thank you for your tutorials! today i am employed as a web3 dev and your videos had a huge influence on it ;)
@PatrickAlphaC
@PatrickAlphaC Жыл бұрын
@@victorhenriquecollasanta4740 LETS GOOOO!!!!!
@jasonbenfrin
@jasonbenfrin Жыл бұрын
LET'S GOOOO
@0x5DA
@0x5DA Жыл бұрын
have you considering opening s matrix room as well?
@MdSamir-ce5pe
@MdSamir-ce5pe Жыл бұрын
How do I check if the bot is working fine or not? when I'm running the index file its giving errors like 'Privileged intent provided is not enabled or whitelisted'
@wlockuz4467
@wlockuz4467 Жыл бұрын
I have never used Discordjs, how does it compare to DiscordPy? personally I've used discordpy for a long time and some of the tools that it offers out of the box like tasks, extensions etc are extremely powerful and on top of that you also have the full power of python at your disposal.
@dddeiv
@dddeiv Жыл бұрын
Hey could you take a look at the biscuit library for Discord API? :)
@SpeedyRacist
@SpeedyRacist Жыл бұрын
You released this after i figured slash commands out lmao
@emahhh
@emahhh Жыл бұрын
I would love to see a Telegram got tutorial next
@dimitritsikaridze6220
@dimitritsikaridze6220 Жыл бұрын
full discord bot tutorial would be nice
@user-gm3eo1dp1y
@user-gm3eo1dp1y Жыл бұрын
Our helpline⬆️ Contact me ⬆️
@pazzoeo
@pazzoeo Жыл бұрын
I would *really* love to know how to use Google App Engine. I hear it's "free" but i cannot wrap my head around how to use it and the limits this "free" tier apply to.
@7heMech
@7heMech Жыл бұрын
Cool
@RovelStars
@RovelStars Жыл бұрын
I can confirm this youtube video will hit a lot of views, due to the topic being so popular ;)
@fkw0k3t4rd5
@fkw0k3t4rd5 Жыл бұрын
Is there a reason you didn't use something like a Heroku worker? That's what I'm using now and wondering if its a bad idea.
@Twingamerdudes
@Twingamerdudes Жыл бұрын
The long awaited tutorial. 2:32 thanks for the free token.
@Nexurl
@Nexurl Жыл бұрын
Good vid but why is it in 480p ?
@Imran_FBD
@Imran_FBD Жыл бұрын
I have a question. What code editor do you use? I have no solid one, so I use notepad or notepad++
@asdasddas100
@asdasddas100 Жыл бұрын
1:55 You can 100% build a bot using serverless functions because that's what I'm doing right now
@ai-whisperer
@ai-whisperer Жыл бұрын
can you lease shed more light on the how?
@SuperElephant
@SuperElephant Жыл бұрын
I tried. Not possible for discord bots.
@ieatthighs
@ieatthighs Жыл бұрын
how
@pmj_studio4065
@pmj_studio4065 Жыл бұрын
It's made possible by using HTTP interactions instead of Gateway events.
@minetomek
@minetomek Жыл бұрын
Can you make example repo on GitHub with base for a bot? It would be really helpful. Btw great video
@user-gm3eo1dp1y
@user-gm3eo1dp1y Жыл бұрын
Our helpline⬆️ Contact me ⬆️
@pizzyoflagos2829
@pizzyoflagos2829 9 ай бұрын
One question, can you recommend a bot that allocatates daily points to users for writing a particular command
@CodyDBentley
@CodyDBentley Жыл бұрын
Curious to know why you don't like builder pattern?
@mhmdalharbi2370
@mhmdalharbi2370 Жыл бұрын
I managed to run telegram bots on serverless environment via web hooks I'm not sure if that also possible for discord tho
@Ouchie
@Ouchie Жыл бұрын
I have a bot that will turn on a led if my mic is muted and off when unmuted, hosted on my raspberry pi
@Knightmare-of-Shadows
@Knightmare-of-Shadows Жыл бұрын
Is it possible to imbue a bot with the memories/information of fictional characters? I need to know, as I must create a Lelouch Vi Britannia bot as well as a Zero bot.
@gamemak0r
@gamemak0r Жыл бұрын
This works amazingly with langchain.
@pixelsbyme
@pixelsbyme Жыл бұрын
Why the quality of video is set to 480p ??
@samiulbasirfahim112
@samiulbasirfahim112 Жыл бұрын
Love from bangladesh
@s0er3n33
@s0er3n33 Жыл бұрын
nice video but were the discords notification sounds necessary?
@idrissberchil25
@idrissberchil25 Жыл бұрын
Do matrix next
@Nick12_45
@Nick12_45 5 ай бұрын
3:30 youtube not THAT liike 😭
@mrdrummer2564
@mrdrummer2564 Жыл бұрын
I guess we only get 480p eh?
@bishnudas3562
@bishnudas3562 Жыл бұрын
3:10 !message?.author.bot can anyone explain why there is question mark?
@joshuanovak961
@joshuanovak961 Жыл бұрын
Not going to lie, I read the thumbnail as: "How I built a cyber bully"
@360noscooper
@360noscooper 11 ай бұрын
can you give some examples of free bot hostings?
@simonbrandner
@simonbrandner Жыл бұрын
My rather biased self would love to see a How to Build a [matrix] Bot video :)
@0x5DA
@0x5DA Жыл бұрын
+1
@Temari_Virus
@Temari_Virus Жыл бұрын
I remember I once tried making a discord bot but it wouldn't respond at all despite being online. Eventually I gave up and chalked it up to my lack of understanding of js but now watching this video I think I was just missing some intents...
@user-gm3eo1dp1y
@user-gm3eo1dp1y Жыл бұрын
Our helpline⬆️ Contact me ⬆️
@HacksoreDEV
@HacksoreDEV Жыл бұрын
FIRST!!!
@ibrahimmohammed3484
@ibrahimmohammed3484 Жыл бұрын
why is this video in 480?!!!
@ruigerooie8055
@ruigerooie8055 Жыл бұрын
when i put npm in the terminal it says that it doesn't know what that is
@FadeThePlayer
@FadeThePlayer 14 күн бұрын
for me it doesnt run. have everything correctly installed and i only receive syntaxerror. tried multiple ways and it wont work. what am i doing wrong
@muaz840
@muaz840 Жыл бұрын
why your videos aren't in hd?
@killerdroid99
@killerdroid99 Жыл бұрын
well u can reset which u did obv
@benjaminshinar9509
@benjaminshinar9509 Жыл бұрын
can we get a video about a TEAMS bot?
@akam9919
@akam9919 Жыл бұрын
anyone wondering why the res is so low?
@smachgame
@smachgame Жыл бұрын
ok man cool where is the discord developer dashboard?
@bity-bite
@bity-bite Жыл бұрын
@ 3:40 why not? It's pretty awesome in my humble opinion.
@imagineabot3166
@imagineabot3166 Жыл бұрын
شكلها بيض بالنسبه لي
@misaelpereira9679
@misaelpereira9679 Жыл бұрын
Javascript or Python is better for easily builds a bot?
@willinton06
@willinton06 Жыл бұрын
Not a fan of the builder pattern huh, spicy
@ZachPlayzYT1
@ZachPlayzYT1 Ай бұрын
what app is he using for the codes
@nerdvananc
@nerdvananc Жыл бұрын
12 hours later I can still only watch the video in 480p - wtf YT?
@official-obama
@official-obama Жыл бұрын
youtube can't upscale videos from its original resolution
@andrewm6788
@andrewm6788 Жыл бұрын
I see every guide use Client rather than commands.Bot, please use the latter it makes implementing things 1000% more efficient
@simplybrocoli58
@simplybrocoli58 9 ай бұрын
Not helpful. How do i use google engines?
@chaitanyakulkarni6416
@chaitanyakulkarni6416 Жыл бұрын
okj , but how do i run it ?
@laurensholthof
@laurensholthof 2 ай бұрын
The content field is always empty for some reason?
@braydntanner5467
@braydntanner5467 Жыл бұрын
Why don't you like the builder pattern?
@nodirbekvositov
@nodirbekvositov Жыл бұрын
Do you have twitter bot as well?
@thecodebuddha7246
@thecodebuddha7246 Жыл бұрын
Hey! There's this scammer on using your logo that replies to commentsvon your channel. Reported it earlier today not sure if the channel got taken down. Just putting it out so you know and if possible you could give a heads up to your followers
@Spacey.
@Spacey. Жыл бұрын
Should have added an anti raid feature to the bot lmaooo. The server is already being raided.
@erlangparasu7524
@erlangparasu7524 Жыл бұрын
about discord and rustlang rust ?
@SRoyTheComfy
@SRoyTheComfy Жыл бұрын
Any idea why this video is only 480p?
@drowsy5384
@drowsy5384 Жыл бұрын
Vscode extension tutorial?
I Hacked a Discord Bot, the Owner said this...
9:09
No Text To Speech
Рет қаралды 1,1 МЛН
This Minecraft Bot Leaked 1,045,208 IPs
8:07
SkyBoi
Рет қаралды 115 М.
Опасность фирменной зарядки Apple
00:57
SuperCrastan
Рет қаралды 11 МЛН
Sigma Kid Hair #funny #sigma #comedy
00:33
CRAZY GREAPA
Рет қаралды 37 МЛН
New model rc bird unboxing and testing
00:10
Ruhul Shorts
Рет қаралды 29 МЛН
I Made My Own Discord Bot
5:17
NathanOnDev
Рет қаралды 37 М.
I tried Discord Bot Makers...
14:19
FaceDev
Рет қаралды 109 М.
How programmers flex on each other
6:20
Fireship
Рет қаралды 2,3 МЛН
PROOF JavaScript is a Multi-Threaded language
8:21
Beyond Fireship
Рет қаралды 271 М.
Ruining Discord Servers with a Bot Exploit!
9:32
No Text To Speech
Рет қаралды 441 М.
I made a Discord Bot that says Choo Choo
33:15
The Coding Train
Рет қаралды 40 М.
Dramatically improve website speed with Partytown
3:39
Beyond Fireship
Рет қаралды 171 М.