How to Build a Discord Bot

Поділитися
Вставка
  • Опубліковано 30 січ 2025

КОМЕНТАРІ • 245

  • @shateq
    @shateq 2 роки тому +127

    This dude covered 30-ten minute long video series in 4 minutes 😂

  • @autumndev
    @autumndev 2 роки тому +386

    Well, serverless is possible if you only need a bot to do slash commands which is a valid use case

    • @ocean3323
      @ocean3323 2 роки тому +9

      Interactions not only slash commands (message components and context menus, modals also)

    • @hrvs
      @hrvs 2 роки тому +8

      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 2 роки тому +4

      currently working on a Python library that focuses solely on Discord interactions! the timing for this video is pretty funny

    • @arkayv
      @arkayv 2 роки тому +3

      @@hrvs *ThePrimagean intensifies*

    • @h.hristov
      @h.hristov 2 роки тому +2

      How would that work if it requires a persistent connection?

  • @gducrash
    @gducrash 2 роки тому +87

    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 Рік тому +3

      Definitely one of the comments of all time

  • @parker02311
    @parker02311 2 роки тому +8

    I love watching videos about creating Discord bots even know I have made multiple. This content is just so satisfying to watch.

  • @lucasguimaraes7041
    @lucasguimaraes7041 2 роки тому +66

    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 2 роки тому +9

      ah yeah heroku, remember using it to create server side apps. unfortunately they stopped giving free tiers

    • @arjittw
      @arjittw 2 роки тому

      Do not take servers too seriously, you will someday get out of free tear - Arjit Tiwari

    • @coolguy1083
      @coolguy1083 2 роки тому

      @@yeppiidev so sad my first app on heroku was a discord bot

    • @vabtech7627
      @vabtech7627 2 роки тому

      @@yeppiidev What are the alternative options nowadays?

    • @yeppiidev
      @yeppiidev 2 роки тому

      @@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

  • @tymianek
    @tymianek 2 роки тому +9

    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 🔥

  • @YuriG03042
    @YuriG03042 2 роки тому +5

    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 2 роки тому +2

      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 2 роки тому +1

      you listed to event messageCreate but then show a screenshot of the bot replying to an interaction wtf???

  • @flamableassassin5105
    @flamableassassin5105 2 роки тому +104

    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  2 роки тому +77

      Good call, yeah serverless will work in certain cases.

    • @krishgarg2806
      @krishgarg2806 2 роки тому +1

      @@beyondfireship yeah it works on interaction model with webhooks like system

    • @hrvs
      @hrvs 2 роки тому

      Telegram Bots works amazing in serverless environment.

    • @azeemhaider5278
      @azeemhaider5278 2 роки тому

      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

  • @jamesprentor8433
    @jamesprentor8433 2 роки тому +5

    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!

  • @PatrickAlphaC
    @PatrickAlphaC 2 роки тому +13

    Question, are you still editing all your videos? The edits are so clean.

    • @PatrickAlphaC
      @PatrickAlphaC 2 роки тому

      @@jujimufi472 fireship is just too good

    • @victorhenriquecollasanta4740
      @victorhenriquecollasanta4740 2 роки тому +1

      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 2 роки тому

      @@victorhenriquecollasanta4740 LETS GOOOO!!!!!

  • @RedCrafter07
    @RedCrafter07 2 роки тому +1

    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  2 роки тому +27

    Let's chat. UPDATE: Thanks for boosts, we have a custom link now discord.gg/fireship

    • @Denny-77
      @Denny-77 2 роки тому +1

      less goo!!!!!

    • @Kat21
      @Kat21 2 роки тому +1

      😮

    • @wppq6944
      @wppq6944 2 роки тому +1

      Is there a particular reason why this comment isn't pinned?

  • @yasanduseenapatabendige9108
    @yasanduseenapatabendige9108 2 роки тому +3

    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 Рік тому

      hey you probably wont respond but can you help me learn to make a bot

    • @detective_solar
      @detective_solar 9 місяців тому

      @@JamesBezza01 I at least will respond. What type of bot do you want to make?

  • @eternalgamer496
    @eternalgamer496 2 роки тому +1

    I just logged into UA-cam 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

  • @developerpranav
    @developerpranav 2 роки тому +6

    Thanks for the tutorial :D
    BTW why does the video have 480p as the max res?

  • @nicetrooper2
    @nicetrooper2 2 роки тому +5

    keep up the amazing work🙌

  • @mirzazplayz_rblx
    @mirzazplayz_rblx 2 роки тому +1

    Literally the best tutorial of discord bot making damnn

  • @ezra6094
    @ezra6094 2 роки тому +2

    I was just thinking about making a discord bot, you're a mind reader!

  • @amrelmohamady
    @amrelmohamady 2 роки тому +1

    The Builder Pattern is my favorite!

  • @Bento_Gaming1
    @Bento_Gaming1 2 місяці тому

    I WAS ROMEING FOR THIS FOR 2 HOURS THIS VIDEO JUST TOLD ME IN 4 MINS TYSM

  • @crupayan
    @crupayan 2 роки тому +7

    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 2 роки тому +2

      X2, personally I find the builder pattern really useful and readable, can simplify the sometimes complex way of building objects.

  • @ibrahimmohammed3484
    @ibrahimmohammed3484 2 роки тому +15

    why is this video in 480?!!!

    • @Ryaspy-YouTube
      @Ryaspy-YouTube 25 днів тому

      I just noticed that 😢😢😢😢😢 dude needs an upgrade.

  • @richasrivastava7739
    @richasrivastava7739 2 роки тому +1

    The most fireship way of announcing the discord

  • @mattplaygamez
    @mattplaygamez 2 роки тому +3

    Good video. "Follow the principal of least privilege"

  • @parmajohn238
    @parmajohn238 2 роки тому

    0:12
    you got me - you really got me

  • @aang__fire_air_water_earth
    @aang__fire_air_water_earth 2 роки тому +1

    Gonna be 1M subscribers in a Month 🔥🔥

  • @dimitritsikaridze6220
    @dimitritsikaridze6220 2 роки тому +3

    full discord bot tutorial would be nice

  • @Twingamerdudes
    @Twingamerdudes 2 роки тому +5

    The long awaited tutorial. 2:32 thanks for the free token.

  • @i3looi2
    @i3looi2 2 роки тому +8

    Building a Discord bot is easy. Keeping it from taking over the world .. now that's a challenge !

  • @GrzyPix
    @GrzyPix 2 роки тому

    I'm pretty sure you will have the best tutorials (and shortest) about “how to make *good* discord bot”

  • @Nexurl
    @Nexurl 2 роки тому +5

    Good vid but why is it in 480p ?

  • @harvanchik
    @harvanchik 2 роки тому +3

    I didn't realize how easy it is. Definitely will try making my own bot soon!

    • @R80QZ
      @R80QZ Рік тому +4

      He lost me at the coding part

    • @Nesha_diarry
      @Nesha_diarry Рік тому

      @@R80QZ this fr

  • @BarryPLAYz
    @BarryPLAYz 2 роки тому +1

    I did this in 2020 because nothing existed to automatically assign a role based on email verification. It was a pretty fun project.

  • @asdasddas100
    @asdasddas100 2 роки тому +7

    1:55 You can 100% build a bot using serverless functions because that's what I'm doing right now

    • @ai-whisperer
      @ai-whisperer 2 роки тому

      can you lease shed more light on the how?

    • @SuperElephant
      @SuperElephant 2 роки тому

      I tried. Not possible for discord bots.

    • @ieatthighs
      @ieatthighs 2 роки тому

      how

    • @pmj_studio4065
      @pmj_studio4065 2 роки тому +1

      It's made possible by using HTTP interactions instead of Gateway events.

  • @eliasmangoro413
    @eliasmangoro413 2 роки тому +5

    Great video! but why don't you like the builder pattern?

  • @mghq-mobilegamerzhq2533
    @mghq-mobilegamerzhq2533 2 роки тому

    Wish this came out 2 weeks earlier, love this though!

  • @pndaMobby
    @pndaMobby Місяць тому

    3:34 "like button builder" *like button glows*

  • @nicolasramos7084
    @nicolasramos7084 2 роки тому

    Great as usual. I would love to see a 'How to build a Twitch extension' video

  • @sage_gamers
    @sage_gamers 2 роки тому +1

    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 9 місяців тому

      That's probably what a bot would say

  • @KillerSharkNHwk
    @KillerSharkNHwk Місяць тому

    You can make a discord bot serverless if it only operates on slash commands and is something like an reddit api random image fetcher. Discord also has a page on its dev portal and github repo that shows you how to do this with a cloudfare worker if you are curious...

  • @yss64
    @yss64 2 роки тому +7

    wow I'm early!!

  • @TheSkyCries1
    @TheSkyCries1 2 роки тому

    My God.. the discord notification noices triggered me. I can't resist checking if there is actually a message. Great video though :D

  • @awhux
    @awhux 2 роки тому +1

    nice video mate

  • @pixelsbyme
    @pixelsbyme 2 роки тому +3

    Why the quality of video is set to 480p ??

  • @dendysaptoadi9652
    @dendysaptoadi9652 2 роки тому

    its very easy when you explain it

  • @Nick12_45
    @Nick12_45 11 місяців тому +3

    3:30 youtube not THAT liike 😭

  • @s0er3n33
    @s0er3n33 2 роки тому

    nice video but were the discords notification sounds necessary?

  • @mrdrummer2564
    @mrdrummer2564 2 роки тому +3

    I guess we only get 480p eh?

  • @RovelStars
    @RovelStars 2 роки тому

    I can confirm this youtube video will hit a lot of views, due to the topic being so popular ;)

  • @returnZeroo
    @returnZeroo 2 роки тому

    props to you.

  • @SpeedyRacist
    @SpeedyRacist 2 роки тому

    You released this after i figured slash commands out lmao

  • @evildoer1606
    @evildoer1606 2 роки тому +1

    Why you are not a fan of builder pattern? What do you prefer to solve lots of parameters in the constructor/constructors?

  • @jnovak01
    @jnovak01 2 роки тому

    Not going to lie, I read the thumbnail as: "How I built a cyber bully"

  • @0x5DA
    @0x5DA 2 роки тому +2

    have you considering opening s matrix room as well?

  • @CodyDBentley
    @CodyDBentley 2 роки тому +1

    Curious to know why you don't like builder pattern?

  • @wlockuz4467
    @wlockuz4467 2 роки тому +2

    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.

  • @simonbrandner
    @simonbrandner 2 роки тому +2

    My rather biased self would love to see a How to Build a [matrix] Bot video :)

    • @0x5DA
      @0x5DA 2 роки тому

      +1

  • @MentorMode
    @MentorMode 2 роки тому

    Awesome 👍

  • @pazzoeo
    @pazzoeo 2 роки тому +2

    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.

  • @muaz840
    @muaz840 2 роки тому +1

    why your videos aren't in hd?

  • @bity-bite
    @bity-bite 2 роки тому

    @ 3:40 why not? It's pretty awesome in my humble opinion.

  • @fkw0k3t4rd5
    @fkw0k3t4rd5 2 роки тому +1

    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.

  • @clean7886
    @clean7886 2 роки тому

    Thanks Brother

  • @kneekoo
    @kneekoo 2 роки тому +1

    0:12 I wonder how many people paused to check their Discord...

  • @minetomek
    @minetomek 2 роки тому

    Can you make example repo on GitHub with base for a bot? It would be really helpful.
    Btw great video

  • @emahhh
    @emahhh 2 роки тому

    I would love to see a Telegram got tutorial next

  • @bishnudas3562
    @bishnudas3562 2 роки тому +2

    3:10 !message?.author.bot can anyone explain why there is question mark?

  • @smachgame
    @smachgame Рік тому

    ok man cool where is the discord developer dashboard?

  • @iamnotstanley
    @iamnotstanley 2 роки тому

    Hey Jeff, why is this video 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++

  • @360noscooper
    @360noscooper Рік тому

    can you give some examples of free bot hostings?

  • @benjaminshinar9509
    @benjaminshinar9509 2 роки тому

    can we get a video about a TEAMS bot?

  • @sotofpv
    @sotofpv 4 місяці тому

    Does the like/dislike button on youtube do a fancy rainbow animation thingy when he says Button @ 3:35 ?

  • @MdSamir-ce5pe
    @MdSamir-ce5pe 2 роки тому +1

    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'

  • @jasonbenfrin
    @jasonbenfrin 2 роки тому

    LET'S GOOOO

  • @dddeiv
    @dddeiv 2 роки тому

    Hey could you take a look at the biscuit library for Discord API? :)

  • @morganjennings3164
    @morganjennings3164 2 роки тому

    It,s so so good 😀🤘🏼

  • @flamenate
    @flamenate 2 роки тому +2

    I love the vid, but tbh does it really count as "from scratch" if you're using a wrapper library that makes things 100x easier and saves literally tens of hours?

    • @derfl007
      @derfl007 2 роки тому +3

      is anything from scratch if you don't write your own compiler?

    • @flamenate
      @flamenate 2 роки тому +1

      @@derfl007 🤷

  • @TheOneAnOnlyGuy
    @TheOneAnOnlyGuy 2 роки тому

    Why are you not a fan of the builder pattern?

  • @echonabin
    @echonabin 2 роки тому

    why's its only 480p on quality??

  • @pizzyoflagos2829
    @pizzyoflagos2829 Рік тому

    One question, can you recommend a bot that allocatates daily points to users for writing a particular command

    • @hauler
      @hauler 5 місяців тому

      no

  • @gamemak0r
    @gamemak0r Рік тому +1

    This works amazingly with langchain.

  • @thecodebuddha7246
    @thecodebuddha7246 2 роки тому +4

    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

  • @Temari_Virus
    @Temari_Virus 2 роки тому

    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...

  • @nerdvananc
    @nerdvananc 2 роки тому

    12 hours later I can still only watch the video in 480p - wtf YT?

    • @official-obama
      @official-obama 2 роки тому

      youtube can't upscale videos from its original resolution

  • @misaelpereira9679
    @misaelpereira9679 2 роки тому

    Javascript or Python is better for easily builds a bot?

  • @electrolyteorb
    @electrolyteorb 2 роки тому

    Why your videos are 480p?

  • @Jojo_clowning
    @Jojo_clowning 2 роки тому

    Do matrix next

  • @nodirbekvositov
    @nodirbekvositov 2 роки тому

    Do you have twitter bot as well?

  • @0xc4ae1e5
    @0xc4ae1e5 2 роки тому +1

    Why 480p?

  • @laurensholthof
    @laurensholthof 8 місяців тому

    The content field is always empty for some reason?

  • @noisyguest5249
    @noisyguest5249 2 роки тому

    Why is the quality 480p at max?

  • @priyanshmishra404
    @priyanshmishra404 2 роки тому +1

    Jeff : " do not expose your discord_TOKEN as hacker can gain control of your bot "
    ..also JEFF- exposing on youtube...
    .
    .
    2:27

  • @khalilbessaad5553
    @khalilbessaad5553 2 роки тому +1

    only 480p?

  • @SRoyTheComfy
    @SRoyTheComfy 2 роки тому

    Any idea why this video is only 480p?

  • @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.

  • @TheSammy2010
    @TheSammy2010 2 роки тому

    Why is this only 480p? I can’t read anything

  • @Ouchie
    @Ouchie 2 роки тому

    I have a bot that will turn on a led if my mic is muted and off when unmuted, hosted on my raspberry pi

  • @bunnydevx
    @bunnydevx 2 роки тому

    Why is this in 480p again 😭

  • @willinton06
    @willinton06 2 роки тому

    Not a fan of the builder pattern huh, spicy