How to make a Discord Bot with Discord.js (JavaScript Tutorial) @DrewConley
How to make a Discord Bot with Discord.js (JavaScript Tutorial)  @DrewConley
Uploaded July 2020 | Updated September 2026, 2 hours ago
In this coding tutorial, we cover the basics of Discord.js for creating Discord bots with JavaScript. We start with a simple Bot that responds to text triggers, then we implement the bot's ability to listen for Reactions. You need node.js v12.0.0 or newer to use Discord.js! Check your version by running `node -v` in a terminal.

Do you have a neat idea for a Discord Bot? Let me know in the comments!

Watch this other video for help installing Discord.JS:
youtu.be/Zqt7tYIpfMs

💬 Join our Discord community of people making video games:
discord.gg/umD2GRy

⭐️ Get early access to my full JS Game Dev course:
drew-conley-courses.kit.com/66eb6d3ff4


*** Timestamps ***
0:00:00 - Intro
0:00:24 - Create Discord Bot
0:02:01 - Bot Permissions
0:02:22 - Invite Bot to Server
0:03:15 - Bot Roles
0:03:36 - Testing Channel
0:04:05 - Install Discord.JS
0:05:03 - Login with Token
0:06:00 - Token in own file
0:06:40 - Client "ready" event
0:07:12 - Bot reacts to message
0:08:39 - The reply() method
0:09:00 - Clippy documentation bot
0:09:59 - Posting links in message text
0:10:30 - Intro to Scrims / Team Generator
0:11:06 - Scrim class
0:12:31 - Reply vs Channel Message
0:13:30 - New scrim on user input
0:14:48 - Promise.then() from reply()
0:16:00 - Bot listens to reactions
0:17:16 - Add user to scrim on reaction
0:18:24 - Detect full scrim
0:19:01 - Random teams on full scrim
0:21:00 - Tagging users
0:23:00 - Edit existing messages
0:24:00 - See code for more
0:24:17 - Host node.js code
0:24:36 - Thanks + Subscribe!


*** Links ***

Discord documentation:
discord.js.org

Twitter:
twitter.com/drewconley13

Code from this video (with some extra features)
gist.github.com/drewconley/f0d9226dd2b0611cdcff0d7c26edf0f0
How to make a Discord Bot with Discord.js (JavaScript Tutorial)How to animate Sprite Sheets in Godot using AnimationPlayer (beginner tutorial)Smooth Camera in JavaScript gamesGet feedback on your gamedev project | 4 waysTutorial: Pixel art SVGs for React game HUDTop Down Game Camera and Movement in HTML, CSS, and JavaScriptYour JavaScript game on Steam (use Electron!)Build a Game with JavaScript and HTML Canvas [RPG Kit series]Building a Pokémon-style Game in 7 Days with Godot4 Tips to finally complete your gamedev projectHow to build a Tile Set Map Editor using HTML CanvasCreating stateful SVG interfaces from pixel art
Drew Conley |

How to make a Discord Bot with Discord.js (JavaScript Tutorial)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER