I made a Discord Bot that says Choo Choo

  Рет қаралды 41,493

The Coding Train

The Coding Train

Күн бұрын

Пікірлер: 80
@Jjdogstein
@Jjdogstein 10 ай бұрын
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 5 ай бұрын
Schiffman and Angela Yu gave me what i needed to actually program, which seemed impossible to me before.
@_rlb
@_rlb 10 ай бұрын
When you say "this bot" I hear the *this. song* 😂
@TheOriginalDuckley
@TheOriginalDuckley 5 ай бұрын
Seeing this at the start of the video. Thank you for this I love that song! Lol 😂
@DavidBauer38
@DavidBauer38 10 ай бұрын
Who needs (or wants) a written guide when there is Dan Shiffman to bring that guide to life?!?!?!
@newmania
@newmania 10 ай бұрын
that being said, I love that there is a written guide and thank you for doing that Dan and Coding Train Crew.
@sallidu4051
@sallidu4051 10 ай бұрын
i made a wordle discord bot a year ago. your video motivated me to update the dependencies.
@eusebieDev
@eusebieDev 4 ай бұрын
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.
@somtoachu5704
@somtoachu5704 2 ай бұрын
i grew up on this guy its almost a decade of engineering thanks man I appreciate you
@Winter_337
@Winter_337 10 ай бұрын
Awesome demo! Thank you, this will spice up my Star Wars TTRPG Discord Server nicely. Anxiously awaiting the hosting video
@TobiasTrofast
@TobiasTrofast 10 ай бұрын
It's the stuttering and tripping over things we love and that makes you human, alive and loveable! Keep on being you!
@TheGiraffe
@TheGiraffe 10 ай бұрын
Awesome tutorial! Would love to see a Slack tutorial in the future! Keep up the amazing work :)
@redpie907
@redpie907 10 ай бұрын
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 10 ай бұрын
Chatgpt can write this in 5 seconds
@Eloikios
@Eloikios 10 ай бұрын
@@Snail641 Thanks to all the efforts people like him have done until now
@redpie907
@redpie907 10 ай бұрын
@@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
@Serpensin
@Serpensin 10 ай бұрын
applications.commands isn't needed anymore, if you selected bot also. They included commands into bot a long time ago.
@geoffwagner4935
@geoffwagner4935 10 ай бұрын
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
@omkarbhale442
@omkarbhale442 10 ай бұрын
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.
@imfrshlikeuhh
@imfrshlikeuhh 10 ай бұрын
Truly one of the best educators of our time.
@zeusmakill3547
@zeusmakill3547 9 ай бұрын
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
@deltaforce3329
@deltaforce3329 10 ай бұрын
Thank you Sir !! God bless You !! i like the way how you teach !!
@anon_y_mousse
@anon_y_mousse 10 ай бұрын
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.
@wkjagt
@wkjagt 8 ай бұрын
I'm not even interested in writing a discord bot, I'm just here for Dan :D
@callmedev_3848
@callmedev_3848 8 ай бұрын
an actual saint of a man
@anind3r
@anind3r 10 ай бұрын
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 ?
@Geffry993
@Geffry993 10 ай бұрын
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 10 ай бұрын
That's really cool!
@anonymous1943
@anonymous1943 10 ай бұрын
Cool!
@nerdycatgamer
@nerdycatgamer 9 ай бұрын
im going to commit copyright infringement on Disney with your bot
@marksponge9073
@marksponge9073 10 ай бұрын
For some reason, I have to hit enter twice for the /choochoo command to work. Love your videos Dr. Shiffman!
@supercrafter100
@supercrafter100 10 ай бұрын
Probably the first time to select the command, and then again to run it! Discord is a tad bit weird sometimes
@supercoolninja
@supercoolninja 10 ай бұрын
Hello, Would be great a video tutorial on Quaternion, Rotation stuff is really confusing to get.
@Mika43344
@Mika43344 10 ай бұрын
Super ultra helpful😮
@PacVan12
@PacVan12 9 ай бұрын
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 :)
@lolhp._.
@lolhp._. 9 ай бұрын
can you make one with options that sends a text reply with the answers of the options?
@shilohwiseman
@shilohwiseman 10 ай бұрын
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!
@learningfuture7957
@learningfuture7957 6 ай бұрын
when will we see your next video?
@theunovanchampion
@theunovanchampion 10 ай бұрын
Wow it's so cool to be so early to a video
@geoffwagner4935
@geoffwagner4935 10 ай бұрын
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
@pv3r755
@pv3r755 7 ай бұрын
instead of slash commands how do you get a user message and make the bot reply to it (like the client.on message )
@jordanwhistler9597
@jordanwhistler9597 3 ай бұрын
You had me until you pronounced gif with a hard G 😂
@Sadesm
@Sadesm 10 ай бұрын
2:00 Yes
@alexsandergutierrezgoncalves
@alexsandergutierrezgoncalves 10 ай бұрын
i really like your videos
@HeadmostCantaloupe
@HeadmostCantaloupe 2 ай бұрын
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.
@circelxxxx1064
@circelxxxx1064 10 ай бұрын
can u do some language c later on
@Comet1TP
@Comet1TP 10 ай бұрын
Help me there is no error but the command doesn't appear
@imfrshlikeuhh
@imfrshlikeuhh 10 ай бұрын
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.
@rossisbudda
@rossisbudda 10 ай бұрын
You’re just great
@soulman902
@soulman902 10 ай бұрын
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 10 ай бұрын
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 10 ай бұрын
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 9 ай бұрын
@@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)
@eineatombombe
@eineatombombe 10 ай бұрын
Could you try making a bot without a framework?
@supercrafter100
@supercrafter100 10 ай бұрын
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 10 ай бұрын
​​@@supercrafter100what alternatives?
@eineatombombe
@eineatombombe 10 ай бұрын
@@supercrafter100to learn, to have fun
@atxmaps
@atxmaps 3 ай бұрын
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 3 ай бұрын
Check the description for a link to the discord where you can get help with this!!
@atxmaps
@atxmaps 3 ай бұрын
@@TheCodingTrain it was my fault. I figured it out. Thx!
@meepk633
@meepk633 10 ай бұрын
That's what trains say!
@GuruKingkong
@GuruKingkong 10 ай бұрын
Guru ji ❤
@nerdycatgamer
@nerdycatgamer 9 ай бұрын
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 9 ай бұрын
Just finished the vid and it looks like you covered this, nevermind! :)
@MahBor
@MahBor 10 ай бұрын
Finally!!!
@rodrigoloya4163
@rodrigoloya4163 10 ай бұрын
I would like to see how can I keep my bot running without my pc turned on
@soniablanche5672
@soniablanche5672 10 ай бұрын
you're probably gonna need some cheap virtual machine hosting
@snakefinn
@snakefinn 10 ай бұрын
Use a cloud provider like GCP. Won't be free but neither is electricity
@geoffwagner4935
@geoffwagner4935 10 ай бұрын
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 10 ай бұрын
if you want a free server, there is cloud oracle with free tier 4ocpu and 24gb ram
@geoffwagner4935
@geoffwagner4935 10 ай бұрын
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
@poodles4058
@poodles4058 10 ай бұрын
Thankssssssssssss
@SLM.1
@SLM.1 9 ай бұрын
Pist song français
@mjohannh
@mjohannh 10 ай бұрын
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 10 ай бұрын
Bruh, discord bots were interesting in 2018. Ever heard of gpts?
What was Coding like 40 years ago?
29:05
The Coding Train
Рет қаралды 1,7 МЛН
Workflow: Terminal, Shell, Node.js, VSCode
23:30
The Coding Train
Рет қаралды 73 М.
когда не обедаешь в школе // EVA mash
00:51
Кәсіпқой бокс | Жәнібек Әлімханұлы - Андрей Михайлович
48:57
How do Cats Eat Watermelon? 🍉
00:21
One More
Рет қаралды 12 МЛН
How principled coders outperform the competition
11:11
Coderized
Рет қаралды 1,7 МЛН
Coding Challenge 171: Wave Function Collapse
1:18:37
The Coding Train
Рет қаралды 546 М.
Complex Graphics API Terms Made Simple
13:05
Oskar Schramm
Рет қаралды 2,8 М.
Coding Challenge 177: Soft Body Physics
29:09
The Coding Train
Рет қаралды 156 М.
The Value of Source Code
17:46
Philomatics
Рет қаралды 81 М.
Why Agent Frameworks Will Fail (and what to use instead)
19:21
Dave Ebbelaar
Рет қаралды 68 М.
Why You Shouldn't Nest Your Code
8:30
CodeAesthetic
Рет қаралды 2,7 МЛН
React visually explained: 'use client'
15:57
Delba
Рет қаралды 44 М.
Coding Challenge 180: Falling Sand
23:00
The Coding Train
Рет қаралды 949 М.
Collisions Without a Physics Library! (Coding Challenge 184)
31:05
The Coding Train
Рет қаралды 109 М.
когда не обедаешь в школе // EVA mash
00:51