Making a Discord bot doesn't have to be hard. In this video I'll be showing you how to make your own in under 5 minutes without having to install anything on your computer. We'll be using DiscordJS to handle all the hard work for us so we can get your bot running in a few lines of code.
After that we'll start off by making a simple message response bot, then move on to more complicated stuff like making a moderation bot, word filter bot, API calls, and more. For this 2020 Discord bot tutorial we'll be using version 12 of the DiscordJS library, many tutorials on Youtube use outdated version of the library which will stop working soon due to changes in the Discord API.
0:00 Intro
1:30 Open Replit text editor and make Discord API application
4:54 Connect bot to discord server
8:40 message reply command
16:45 Delete messages command
20:50 documentation review
30:35 API call joke command
34:40 Moderation bot
40:50 word filter bot
Links:
event cheatsheet - https://gist.github.com/koad/316b265a...
public APIs - https://github.com/public-apis/public...
DiscordJS documentation - https://discord.js.org/#/docs/main/st...
#discordbot #javascript #nodejs
The main concepts we'll be working with for this Discord Bot Tutorial is the DiscordJS client, which handles connecting to the Discord api for us. The Discord Client listens for events coming in through the discord server, the most used event will be the message event which is passed every time a user posts on Discord. We can use the message object to find the user who sent the messag, the contents of the message, and much more. In this tutorial we'll make a Discord bot that can parse commands from messages and then run various tasks based on specific commands.
One of the main benefits of Discord is the built in community, with over 100 million active users. You can take advantage of this to easily build your own community. A Discord bot makes managing your community easier with moderation features and can also make it more engaging or exciting as well. The main purpose of this Discord bot tutorial video is to show you the basics and hopefully help spark your imagination so you can create or implement your own ideas