I made a Discord Bot that says Choo Choo @TheCodingTrain
I made a Discord Bot that says Choo Choo  @TheCodingTrain
Uploaded November 2023 | Updated November 2026, 3 days ago
Learn to create a Discord bot using Discord.js in Node.js. This video walks through setting up a node project, creating a Discord application, and writing code for authentication, slash commands, and bot interaction. Code: thecodingtrain.com/tracks/discord-bots/discord/coding-a-bot

πŸš€ Watch this video ad-free on Nebula nebula.tv/videos/codingtrain-how-to-make-a-discord-bot-in-javascript

πŸ’» Code Example: github.com/CodingTrain/Discord-Bot-Examples/tree/main/01-discordjs

πŸŽ₯ Previous: youtu.be/wM3TEvQn2hw

References:
πŸ€– Discord Developer Portal: discord.com/developers/applications
πŸ“ƒ Discord API Documentation: discord.com/developers/docs/reference
🎨 Discord.js: discord.js.org
πŸ“„ Discord.js Guide: https://discordjs.guide/
πŸ’Ύ Discord Gateway Intents: github.com/CodingTrain/Discord-Bot-Examples/wiki/Discord-GatewayIntents-explained

Videos:
πŸš‚ Hiding API keys with .env: youtu.be/17UVejOw3zA
πŸš‚ async/await: youtu.be/XO77Fib9tSI

Timestamps:
0:00 Introduction
3:39 Setting up the Node.js project
5:50 Creating the Discord application
6:24 Inviting your Discord bot
10:11 Enabling developer mode on Discord
10:33 Setting up the .env file
12:47 Code! Getting the bot to log into Discord
18:16 Creating a slash command
24:00 Deploying the slash command
25:53 Listening for the command interaction and executing the command
30:08 How Discord bots communicate with Discord
32:00 Discord.JS documentation

Corrections:
15:45 Intents describe what events your bot will receive and what it has access to. The guilds intent is required so discord.js can internally populate it's cache to limit it's API calls to Discord.
23:49 Using ./ means the import will be relative to the file that the import is made in. Without it the import would be absolute meaning it would be from the root of your Node.JS project

Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound

πŸš‚ Website: thecodingtrain.com
πŸ‘Ύ Share Your Creation! thecodingtrain.com/guides/passenger-showcase-guide
🚩 Suggest Topics: github.com/CodingTrain/Suggestion-Box
πŸ’‘ GitHub: github.com/CodingTrain
πŸ’¬ Discord: thecodingtrain.com/discord
πŸ’– Membership: youtube.com/thecodingtrain/join
πŸ›’ Store: standard.tv/codingtrain
πŸ–‹οΈ Twitter: twitter.com/thecodingtrain
πŸ“Έ Instagram: instagram.com/the.coding.train

πŸŽ₯ Coding Challenges: youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
πŸŽ₯ Intro to Programming: youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA

πŸ”— p5.js: p5js.org
πŸ”— p5.js Web Editor: editor.p5js.org
πŸ”— Processing: processing.org

πŸ“„ Code of Conduct: github.com/CodingTrain/Code-of-Conduct

This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecodingtrain.com/issues/new

#discordbots #javascript #nodejs #discordjs
I made a Discord Bot that says Choo ChooWinter Show 2020 (ITP/IMA/IMA Low Res)Discord Bots 6: Building a Command HandlerProcessing Foundation New Years Telethon Extravaganza!#genuary18 BauhausCoding Challenge 181: Weighted Voronoi Stipplingp5.js 2.0: loading data with async and await (LIVE RECORDING SESSION ARCHIVE)Coding Train Live!πŸ‘Ύ p5.js saveGif() changes everything! #creativecoding #programming #shortsHow to Make a Pull Request #shorts5.6 Vector Dot Product (Scalar Projection) - The Nature of Code3.1 Angles and Rotation - Nature of Code
The Coding Train |

I made a Discord Bot that says Choo Choo

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER