

Whenever certain events happen in your Discord channel your bot gets notified through the Discord API (Application Programming Interface). This is a simplified example, but that’s essentially how bots work on the back-end. If it finds the word ping in the message, it responds saying, “pong!” The bot then reads this message and looks for the word “ping”. When it’s online, the bot is in my channel and actively listening to all chat messages.Įvery time a chat message is sent, the bot gets a little notification from the Discord API saying, “Hey, we have a callback/event! A chat message was sent!”

You get to program that action.Ī great example is the ping pong bot we have below. This means that when something happens in Discord, your bot sees it happen and takes action. Your typical Discord bot has some programming/code in the background that tells it what to do when it encounters a trigger you specified. You’ll see them show up in channels just like a regular user would, with the only real differentiator being their blue “bot” tag. Let’s get rolling… What Are Discord Bots?ĭiscord bots are essentially “automated robots” that join your server and respond to events.
#Visual studio code discord how to#
Once we have that covered, we’ll show you how to create your own discord bot with absolutely no coding, show you the easiest method to get a bot off the ground (in just 15 minutes…), and then go into some more advanced topics like 24/7 bot hosting, getting your bots online, and idea generation to help you come up with the next big Discord bot sensation. How do Discord bots work after all? What’s going on behind the scenes? Then we’ll jump into creating bots in Python, Java, C#, JavaScript, and even in mobile development environments. We’ll start off by going over the basics. This guide will walk you through to the finish line, step by step.īe sure to follow the quick navigation icons below to jump around in this guide and find exactly what you’re looking for! How to Make a Discord BotĪfter reading this guide you’ll have a clear path forward to creating your own bot in 5 popular programming languages (including a ‘zero code, no programming required’ option), and you’ll also have a clear picture of how Discord bots work behind the scenes. Well, I’ll tell you right now, there’s something extremely satisfying about building up your own bot from scratch and then seeing it in action on your server. You’re here because you want to make your very own Discord bot.
