DEV Community

DevMirza
DevMirza

Posted on

3 2

How to Code your own Discord Bot | PART 1| Getting started.

Hello Guys! ๐Ÿ˜
I am DevMirza and today I am going to told u how to create a Discord Bot.

Welcome to the part 1 of coding a Discord Bot. I am writing this article with my experience, so let's get started.

Creating application

  • First goto Discord Developer Portal and create a new Application and click on bot section and select Add-a-Bot.
  • Now Next Step is to add the bot to the Server.
  • Click on Oauth2 section and scroll down and select "bot". This will generate a link to add the bot to server. Click on copy and add the bot to server.
  • And the bot is on your server.

Note: The Token is important thing to get your bot online don't share it with anyone unless you trust him.

Getting things ready to get the bot up.

  • Firstly, we need a IDE(integrated development environment) to write our Code. I recommend you using VScode because it's very easy to use and familiar ๐Ÿ˜Š. Download it here: https://code.visualstudio.com/ , After you install it create a folder on desktop and name it whatever you want.
  • After making a folder open it in VScode. & Now my favorite ๐Ÿ˜ part. But, but Hold on.....

I am writing this from m phone so we continue from this where we lefte..

Thank you so much โค๏ธ for reading.

Top comments (0)

SurveyJS custom survey software

JavaScript Form Builder UI Component

Generate dynamic JSON-driven forms directly in your JavaScript app (Angular, React, Vue.js, jQuery) with a fully customizable drag-and-drop form builder. Easily integrate with any backend system and retain full ownership over your data, with no user or form submission limits.

Learn more