|
| 1 | +{ |
| 2 | + "title": "Coding a Discord Bot", |
| 3 | + "description": "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.", |
| 4 | + "videoId": "AvQcTjB3gPg", |
| 5 | + "nebulaSlug": "codingtrain-how-to-make-a-discord-bot-in-javascript", |
| 6 | + "date": "2023-11-11", |
| 7 | + "canContribute": false, |
| 8 | + "languages": ["JavaScript", "Node.js", "discord.js"], |
| 9 | + "topics": ["discord bots"], |
| 10 | + "timestamps": [ |
| 11 | + { "time": "0:00", "title": "Introduction" }, |
| 12 | + { "time": "3:39", "title": "Setting up the Node.js project" }, |
| 13 | + { "time": "5:50", "title": "Creating the Discord application" }, |
| 14 | + { "time": "6:24", "title": "Inviting your Discord bot" }, |
| 15 | + { "time": "10:11", "title": "Enabling developer mode on Discord" }, |
| 16 | + { "time": "10:33", "title": "Setting up the .env file" }, |
| 17 | + { "time": "12:47", "title": "Code! Getting the bot to log into Discord" }, |
| 18 | + { "time": "18:16", "title": "Creating a slash command" }, |
| 19 | + { "time": "24:00", "title": "Deploying the slash command" }, |
| 20 | + { |
| 21 | + "time": "25:53", |
| 22 | + "title": "Listening for the command interaction and executing the command" |
| 23 | + }, |
| 24 | + { "time": "30:08", "title": "How Discord bots communicate with Discord" }, |
| 25 | + { "time": "32:00", "title": "Discord.JS documentation" } |
| 26 | + ], |
| 27 | + "corrections": [ |
| 28 | + { |
| 29 | + "time": "15:45", |
| 30 | + "title": "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." |
| 31 | + }, |
| 32 | + { |
| 33 | + "time": "23:49", |
| 34 | + "title": "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" |
| 35 | + } |
| 36 | + ], |
| 37 | + "codeExamples": [ |
| 38 | + { |
| 39 | + "title": "Coding a Discord Bot", |
| 40 | + "description": "Code and instructions for creating a Discord bot using discord.js", |
| 41 | + "urls": { |
| 42 | + "node": "https://github.com/CodingTrain/Discord-Bot-Examples/tree/main/01-discordjs" |
| 43 | + } |
| 44 | + } |
| 45 | + ], |
| 46 | + "groupLinks": [ |
| 47 | + { |
| 48 | + "title": "References", |
| 49 | + "links": [ |
| 50 | + { |
| 51 | + "icon": "🤖", |
| 52 | + "title": "Discord Developer Portal", |
| 53 | + "url": "https://discord.com/developers/applications", |
| 54 | + "description": "Applications page in the Discord Developer Portal" |
| 55 | + }, |
| 56 | + { |
| 57 | + "icon": "📃", |
| 58 | + "title": "Discord API Documentation", |
| 59 | + "url": "https://discord.com/developers/docs/reference", |
| 60 | + "description": "Documentation for the Discord API" |
| 61 | + }, |
| 62 | + { |
| 63 | + "icon": "🎨", |
| 64 | + "title": "Discord.js", |
| 65 | + "url": "https://discord.js.org/", |
| 66 | + "description": "A powerful package for interacting with the Discord API" |
| 67 | + }, |
| 68 | + { |
| 69 | + "icon": "📄", |
| 70 | + "title": "Discord.js Guide", |
| 71 | + "url": "https://discordjs.guide/", |
| 72 | + "description": "The official guide for discord.js, created and maintained by core members of its community." |
| 73 | + }, |
| 74 | + { |
| 75 | + "icon": "💾", |
| 76 | + "title": "Discord Gateway Intents", |
| 77 | + "url": "https://github.com/CodingTrain/Discord-Bot-Examples/wiki/Discord-GatewayIntents-explained/", |
| 78 | + "description": "A wiki page explaining Discord Gateway Intents" |
| 79 | + } |
| 80 | + ] |
| 81 | + } |
| 82 | + ], |
| 83 | + "credits": [ |
| 84 | + { |
| 85 | + "title": "Editing", |
| 86 | + "name": "Mathieu Blanchette" |
| 87 | + }, |
| 88 | + { |
| 89 | + "title": "Animations", |
| 90 | + "name": "Jason Heglund" |
| 91 | + } |
| 92 | + ] |
| 93 | +} |
0 commit comments