Create a Discord Bot With Node.js

preview_player
Показать описание

Anson The Developer YouTube:

Code:

💖 Support The Channel!

Website & Brad Traversy Udemy Course Links:

Follow Traversy Media:

Timestamps:
0:00 - Introduction
1:16 - Project Setup
4:36 - Creating Discord Application
8:06 - Adding the Bot to our Discord Server
10:46 - Logging the bot In
15:36 - Basic Events
18:26 - Ready Event
20:56 - Message Events
25:06 - Bot Responses
30:31 - Basic Chat Commands
37:36 - Kick Command
52:54 - Ban Command
1:00:45 - Message Reactions & Reaction Roles
1:12:15 - Webhooks
1:17:09 - Thank You
Рекомендации по теме
Комментарии
Автор

Thank you SO MUCH BRAD for this amazing opportunity to do this video. Hopefully this will bring more attention to the Discord Bot Dev community :)!

ansonthedev
Автор

I want to thank you for using the documentation, this was the first time I used a documentation FOR REAL, and I'm getting very far because of this. Because of you I know how to read a documentation and you changed my programming life forever.

Thank you.

Eumanuel
Автор

Dude, I've been feeling down lately when it comes to self-taught programming, but after watching this video, it reignited my need to learn more. Thank you Brad and Anson!

kvncnls
Автор

NOTE FOR ANYONE WATCHING AFTER DISCORD API 13: there are many changes like you have to specify intents while creating client and instead of message event its now messageCreate event

devpro
Автор

YESSS I was just looking to make a bot, so this couldn't come at a better time! Thanks Brad & Anson!

dislexicllama
Автор

I dont know why this specific tutorial made me get it but I now understand the spread operator much better because of this simple real world example...Thank you!

TradeBrigade
Автор

I'm glad he got in at 1:35 instead of talking for like 10 hours like all other youtubers

bigmancozmo
Автор

Running into "Error: Cannot find module 'dotenv'"? just type:

npm install dotenv --save

And try to run the server again. You're welcome.

Eumanuel
Автор

You know the level of computer proficiency of a person when he uses the terminal just to create a folder.

dv
Автор

7:30
When attempting to run code:
"Error: Cannot find module 'dotenv'
code: 'MODULE_NOT_FOUND'"
Regardless of where ".env" is placed, it might as well not exist

Stuck even before i have started -.-

razinoid
Автор

why do i have so much trouble pinging when i type node ./src/bot.js I hit it one time and every other time i try to run i get an error it cant locate module

Zazzzzzy
Автор

Thank you for creating this tutorial, I watched the whole thing through and I have learned allot.

I can't wait to finish off my bot and have it ready within a few days :).

static_
Автор

A good video, made by someone who knows what is doing!
SADLY some things in this video, like the initial part while setting up the project and some other commands are now deprecated and have changed.
For these things, I reccomand to watch a newer video and setup the project, then you can continue with this video, because is soo good in the explaining and making!
hope this can help!

Ryukiii_
Автор

I love the fact that Anson started recording at 6 AM

onewhispergaming
Автор

This is a great introduction! However several things are outdated such as the hasPermissions, and I think args too. However this is a great introduction. For all of you still watching I recommend asking a friend who knows alot of code to help you "update" the code.

azure_snek
Автор

Thank you very much i failed many times making but i think i will succes now thanks anson and traversy media i will sub for sure

bushibushirino
Автор

when i type node ./src/bot.js it dosent type my token it just says nothing could you help me please

dimitrismirnoff
Автор

i using ubuntu when i do this: 7:56 my prompt show me "undefined" i don't know why

dicsletticoediscalcuto
Автор

Hello at 2:33 you wrote a code I couldn't write down, could you reply to this comment and could someone PLEASE write down what that code was?

diobrandino
Автор

Hi i have a problem when i start in powershell i was typing npm init -y it wasnt working it was showing the terms npm init and -y are not recognized could be great if you help ...

compactgamers