I made a Discord Bot that says Choo Choo

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ธ.ค. 2024

ความคิดเห็น • 83

  • @Jjdogstein
    @Jjdogstein ปีที่แล้ว +37

    It's because of people like you that coding has become so accessible and exciting for new programmers! The work you do is extremely valuable and is appreciated. You have such a contagious passion for programming and teaching. Your attitude and methodology are super beginner-friendly. Because of you, my 9 yr old cousin decided to begin learning programming. I, and the programming community as a whole, cannot thank you enough for all the hard work you do.

    • @delekmiller2362
      @delekmiller2362 8 หลายเดือนก่อน

      Schiffman and Angela Yu gave me what i needed to actually program, which seemed impossible to me before.

  • @DavidBauer38
    @DavidBauer38 ปีที่แล้ว +26

    Who needs (or wants) a written guide when there is Dan Shiffman to bring that guide to life?!?!?!

    • @newmania
      @newmania ปีที่แล้ว +4

      that being said, I love that there is a written guide and thank you for doing that Dan and Coding Train Crew.

  • @_rlb
    @_rlb ปีที่แล้ว +35

    When you say "this bot" I hear the *this. song* 😂

    • @TheOriginalDuckley
      @TheOriginalDuckley 7 หลายเดือนก่อน

      Seeing this at the start of the video. Thank you for this I love that song! Lol 😂

  • @sallidu4051
    @sallidu4051 ปีที่แล้ว +4

    i made a wordle discord bot a year ago. your video motivated me to update the dependencies.

  • @somtoachu5704
    @somtoachu5704 4 หลายเดือนก่อน

    i grew up on this guy its almost a decade of engineering thanks man I appreciate you

  • @eusebieDev
    @eusebieDev 7 หลายเดือนก่อน +1

    Just found your channel! How have I not known of you before! Amazing and thanks for all your work and energy! Diving in to all your tutorials.

  • @Winter_337
    @Winter_337 ปีที่แล้ว +5

    Awesome demo! Thank you, this will spice up my Star Wars TTRPG Discord Server nicely. Anxiously awaiting the hosting video

  • @TobiasTrofast
    @TobiasTrofast ปีที่แล้ว +2

    It's the stuttering and tripping over things we love and that makes you human, alive and loveable! Keep on being you!

  • @TheGiraffe
    @TheGiraffe ปีที่แล้ว +2

    Awesome tutorial! Would love to see a Slack tutorial in the future! Keep up the amazing work :)

  • @whathuh6965
    @whathuh6965 2 หลายเดือนก่อน

    Your teaching capabilities are extensively great!

  • @omkarbhale442
    @omkarbhale442 ปีที่แล้ว +5

    I don't know what I'd like to see in the bot, but hopefully it gets turned into an actual usable something, rather than a bunch of examples tied together.
    I started my nodejs journey with your old discordjs tutorial. I can now use express, mongodb, and make backends. Couldn't have done it without you telling me what nodejs is! I learned all of programming by watching your coding challenges. Right now I think weird that you don't use anonymous functions, but it was so worth it when I was just getting started.

  • @Serpensin
    @Serpensin ปีที่แล้ว +2

    applications.commands isn't needed anymore, if you selected bot also. They included commands into bot a long time ago.

  • @redpie907
    @redpie907 ปีที่แล้ว +11

    I love you man, you are a code genius, you are super motivational, I wanna be so good as you 🥹 I love how you think, your style, keep up the amazing work

    • @Snail641
      @Snail641 ปีที่แล้ว +2

      Chatgpt can write this in 5 seconds

    • @Eloikios
      @Eloikios ปีที่แล้ว +2

      @@Snail641 Thanks to all the efforts people like him have done until now

    • @redpie907
      @redpie907 ปีที่แล้ว +1

      @@Snail641 yeah but I am never the type who is not interested in knowing the behing and the how :D if I wanna work fast yeah sure I can use chatGPT but for me this is not the point. Its like something else live your life... or something else playing instead of you, something eating instead of you :D

  • @geoffwagner4935
    @geoffwagner4935 ปีที่แล้ว +2

    jeeze, you made 5 videos in a row??? OO My bot is made from a arm load of your old videos and the new js instructions before this video LOL it's such an over complicated looking mess compared to this one LOL i have the sub folders from the instructions and everything, and it does read ever message, i still only registered the ping/pong for slash builder, the rest i put into "event" -messageCreate, then 26 arrays to sort thru players and battlefield server stats , and tell me thing i'd find odd as an admin, such as over %100 accuracy on any weapon, ignore shotguns, grenade,snipers rifles, and gadgets . these are incredibly fun bots

  • @anon_y_mousse
    @anon_y_mousse ปีที่แล้ว +1

    Not that it matters now, but I figured out why cowsay wouldn't work for me. Apparently the examples show a bunch of options to control it, but the real interface is just using the command line switches, even as a function call. One of these days I may finally join Discord, but for now I'm content with IRC.

  • @zeusmakill3547
    @zeusmakill3547 ปีที่แล้ว +2

    Please can you make a tutorial on using path finding a* pathfinding on maze generation script , I saw both the videos but I don't know how to join both these concepts

  • @wkjagt
    @wkjagt 11 หลายเดือนก่อน

    I'm not even interested in writing a discord bot, I'm just here for Dan :D

  • @anind3r
    @anind3r ปีที่แล้ว +1

    Thankyou once again for great content. one thing am confused on is in your code wy do we need to wait for the promise to be fulfiiled in, await interaction.reply, if the code is not doing anything after it then cant we just call the reply method and forget about it instead of waiting for it to be finished ?

  • @deltaforce3329
    @deltaforce3329 ปีที่แล้ว +2

    Thank you Sir !! God bless You !! i like the way how you teach !!

  • @Geffry993
    @Geffry993 ปีที่แล้ว +2

    I made a discord bot that prints a shirt with an image you upload, let you buy it and then it get delivered to your house :)

    • @supercrafter100
      @supercrafter100 ปีที่แล้ว

      That's really cool!

    • @anonymous1943
      @anonymous1943 ปีที่แล้ว

      Cool!

    • @nerdycatgamer
      @nerdycatgamer 11 หลายเดือนก่อน

      im going to commit copyright infringement on Disney with your bot

  • @supercoolninja
    @supercoolninja ปีที่แล้ว

    Hello, Would be great a video tutorial on Quaternion, Rotation stuff is really confusing to get.

  • @marksponge9073
    @marksponge9073 ปีที่แล้ว

    For some reason, I have to hit enter twice for the /choochoo command to work. Love your videos Dr. Shiffman!

    • @supercrafter100
      @supercrafter100 ปีที่แล้ว +2

      Probably the first time to select the command, and then again to run it! Discord is a tad bit weird sometimes

  • @lolhp._.
    @lolhp._. ปีที่แล้ว

    can you make one with options that sends a text reply with the answers of the options?

  • @callmedev_3848
    @callmedev_3848 11 หลายเดือนก่อน

    an actual saint of a man

  • @imfrshlikeuhh
    @imfrshlikeuhh ปีที่แล้ว +2

    Truly one of the best educators of our time.

  • @learningfuture7957
    @learningfuture7957 9 หลายเดือนก่อน

    when will we see your next video?

  • @pv3r755
    @pv3r755 10 หลายเดือนก่อน

    instead of slash commands how do you get a user message and make the bot reply to it (like the client.on message )

  • @Mika43344
    @Mika43344 ปีที่แล้ว +2

    Super ultra helpful😮

  • @PacVan12
    @PacVan12 11 หลายเดือนก่อน

    First of all, I love your book. Second of all, there's a small mistake in the book. Small typo at figure 3.2, you accidentally wrote 3.3 instead of 3.2 :)

  • @shilohwiseman
    @shilohwiseman ปีที่แล้ว

    wow man! you are the most energetic guy i love that! man! i hope you read this and if you are i just want to say, that you made me cry from how nice you are man i really hope you get the best life man, love your vids and love youre energy omg im actually so happy for you!

  • @at-someone
    @at-someone หลายเดือนก่อน

    charlie the choo choo by beryl evans

  • @Sadesm
    @Sadesm ปีที่แล้ว

    2:00
    Yes

  • @alexsandergutierrezgoncalves
    @alexsandergutierrezgoncalves ปีที่แล้ว

    i really like your videos

  • @geoffwagner4935
    @geoffwagner4935 ปีที่แล้ว

    my bot is so overfly filled, i wanted to pull the stats part out for my webpage server you showed how to make. i can't even get it back out yet lol I've tried, i can't hardly figure my own bot back out lol

  • @Comet1TP
    @Comet1TP ปีที่แล้ว

    Help me there is no error but the command doesn't appear

  • @soulman902
    @soulman902 ปีที่แล้ว

    This has been very good so far but I have a question about the order of execution. How does the client.once still execute after the client.login()? Shouldn’t the client.login() method be called first then the client.once() method?

    • @supercrafter100
      @supercrafter100 ปีที่แล้ว

      client.once actually attaches a function that gets run when a certain event is fired. In this case it's the clientReady event that we're listening for. The login method however starts the login process of the bot. Once it's done, discord will fire the clientReady event and then discord.js forwards that event to all the listeners that are listening to that event. In this case our readyDiscord function!

    • @DipamSen
      @DipamSen ปีที่แล้ว +1

      the client.once doesn't run in the order it is written in the code! It is more like "hey discord.js, run this readyDiscord function once the bot logs in", and you need to tell it that, before actually logging in!

    • @nerdycatgamer
      @nerdycatgamer 11 หลายเดือนก่อน

      @@DipamSen This exactly :) it sorta makes sense in the name too, we're saying 'once EVENT, do this', and while it might not make sense for logging in, it is the general pattern for things like this, so we can tell the bot the reaction it should have upon a certain event, even if we don't have a line of code that explicitly causes that event (like with logging in)

  • @HeadmostCantaloupe
    @HeadmostCantaloupe 5 หลายเดือนก่อน

    Hey Dan, when node gives me a "MODULE_NOT_FOUND" error, what should I do? should I re-install node or npm? It's been like this for a while now and whenever I use a npm package or dotenv it gives me the error.

  • @jordanwhistler9597
    @jordanwhistler9597 6 หลายเดือนก่อน

    You had me until you pronounced gif with a hard G 😂

  • @theunovanchampion
    @theunovanchampion ปีที่แล้ว +1

    Wow it's so cool to be so early to a video

  • @imfrshlikeuhh
    @imfrshlikeuhh ปีที่แล้ว

    Dan's work will leave the same legacy as the great thinkers and doers from centuries past. The only difference is, Dan is 100x more funny than those dudes.

  • @circelxxxx1064
    @circelxxxx1064 ปีที่แล้ว

    can u do some language c later on

  • @atxmaps
    @atxmaps 6 หลายเดือนก่อน

    I can't get past the redirects for Oauth2. I can't even see what you have for that on your screen you go right past it.

    • @TheCodingTrain
      @TheCodingTrain  6 หลายเดือนก่อน +1

      Check the description for a link to the discord where you can get help with this!!

    • @atxmaps
      @atxmaps 6 หลายเดือนก่อน

      @@TheCodingTrain it was my fault. I figured it out. Thx!

  • @eineatombombe
    @eineatombombe ปีที่แล้ว

    Could you try making a bot without a framework?

    • @supercrafter100
      @supercrafter100 ปีที่แล้ว

      I'm not really sure why you'd do this? Frameworks are there to provide abstractions around the api. The Discord api is a pretty complicated thing and you'll probably end up writing your own abstractions around it anyways. While discord.js is a pretty beefy framework, there are more lightweight alternatives out there!

    • @xyangst
      @xyangst ปีที่แล้ว

      ​​@@supercrafter100what alternatives?

    • @eineatombombe
      @eineatombombe ปีที่แล้ว +2

      @@supercrafter100to learn, to have fun

  • @rossisbudda
    @rossisbudda ปีที่แล้ว

    You’re just great

  • @saranyasoundharajan1649
    @saranyasoundharajan1649 หลายเดือนก่อน

    Hi, I followed the steps in the video. But I couldn't get my server, the one I newly created switched on. I followed all the steps.
    1. Set up a new application using Discord Developer Portal. Used the client ID and auth token.
    2. Created the new server using 'Add server' from my account. Enabled Developer mode.
    3. Created Server from generator URL.
    Yet the server is not switched on. Can anyone help with this?

  • @GuruKingkong
    @GuruKingkong ปีที่แล้ว

    Guru ji ❤

  • @rodrigoloya4163
    @rodrigoloya4163 ปีที่แล้ว

    I would like to see how can I keep my bot running without my pc turned on

    • @soniablanche5672
      @soniablanche5672 ปีที่แล้ว +1

      you're probably gonna need some cheap virtual machine hosting

    • @snakefinn
      @snakefinn ปีที่แล้ว

      Use a cloud provider like GCP. Won't be free but neither is electricity

    • @geoffwagner4935
      @geoffwagner4935 ปีที่แล้ว

      one should be so inclined as to visit the "Working with Data and APIs in JavaScript" playlist tag on the end. he covers a lot of remote hosting playlists, but this playlist mentions my favorite local recommendation which after enough of his videos, it' a light bulb over the head coming on when he says it. and i will be using it for many many projects later. and he put it on the end on this video. more like the 1 candle to light a million. Buddhism "Thousands of candles can be lighted from a single candle, and the life of the candle will not be shortened. Happiness never decreases by being shared." it was like a million light bulbs and just me tho.

    • @mthia
      @mthia ปีที่แล้ว +1

      if you want a free server, there is cloud oracle with free tier 4ocpu and 24gb ram

    • @geoffwagner4935
      @geoffwagner4935 ปีที่แล้ว

      oh no, i'm no spoiler this playlist will blow your mind. he has a free option lol i used up my credit during corona for the folding@home. he has the most amazing free option ever. i had a 3 day thing with xfinity to get a new router over it lol it's such a case, most everything he does also fits this convenient solution. i was upset i used every free credit i had on every platform, until you realize what Shiffman has already been having you do this entire time. it's like million light bulbs. the credits go much further, those are mainframe cpu's which means you can have42-125 cores and tb of ram if you want. the have the big ones. i was cpu mining for curecoin lol @@mthia

  • @nerdycatgamer
    @nerdycatgamer 11 หลายเดือนก่อน

    I love the vids, but this approach doesn't seem proper to me. If the actual logic of what happens upon a command is handled in bot.js upon receiving the interaction, and it only checks the name, then why are we putting the commands in separate files? Won't all of these files have (almost) identical contents, with the actual differing logic being contained in bot.js with a big if-else block? Just seems like unnecessary boilerplate and an antipattern to me.

    • @nerdycatgamer
      @nerdycatgamer 11 หลายเดือนก่อน +1

      Just finished the vid and it looks like you covered this, nevermind! :)

  • @meepk633
    @meepk633 ปีที่แล้ว +1

    That's what trains say!

  • @MahBor
    @MahBor ปีที่แล้ว

    Finally!!!

  • @poodles4058
    @poodles4058 ปีที่แล้ว

    Thankssssssssssss

  • @SLM.1
    @SLM.1 11 หลายเดือนก่อน

    Pist song français

  • @mjohannh
    @mjohannh ปีที่แล้ว

    What's the deal with this "Discord"-Thing? Is there anything substancial I can learn from it? A random bot for a random service which is probably bought by a billionaire, renamed to "Y" and from then on dying within the next 2 years? Where is the entertaining, inspiring Shiffman, teaching creative and substantial things I can use for the rest of my programmer-life?

  • @Snail641
    @Snail641 ปีที่แล้ว

    Bruh, discord bots were interesting in 2018. Ever heard of gpts?