tubeshowcase●1,669,243 videos♡ My collection 0
← Learn to Code

Learn to Code33:15

I made a Discord Bot that says Choo Choo

The Coding Train ↗

From the creator

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: https://thecodingtrain.com/tracks/discord-bots/discord/coding-a-bot 🚀 Watch this video ad-free on Nebula https://nebula.tv/videos/codingtrain-how-to-make-a-discord-bot-in-javascript 💻 Code Example: https://github.com/CodingTrain/Discord-Bot-Examples/tree/main/01-discordjs 🎥 Previous: https://youtu.be/wM3TEvQn2hw References: 🤖 Discord Developer Portal: https://discord.com/developers/applications 📃 Discord API Documentation: https://discord.com/developers/docs/reference 🎨 Discord.js: https://discord.js.org/ 📄 Discord.js Guide: https://discordjs.guide/ 💾 Discord Gateway Intents: https://github.com/CodingTrain/Discord-Bot-Examples/wiki/Discord-GatewayIntents-explained/ Videos: 🚂 Hiding API keys with .env: https://youtu.be/17UVejOw3zA 🚂 async/await: https://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:

Published 2023-11-13 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code