First component first, allow’s create a folder for our mission (it relies upon on you on wherein to place it, it doesn’t be counted) and name we’ll call it for now as“greeter-bot”.
Next, let’s create the following Discord bot package deal.json, bot.js, and auth.json
Now permit’s placed some thing in them lets?
To get your token observe this guide on how to setup a Discord app.
Set up DEPENDENCIES
Okay, so now our script is predicated on a few node libraries. so we want to them to get installed to.Open up your command line and navigate within the project folder, once you’re in, without a doubt deploy the dependencies by using executing the following command:
Walking THE APP
TIME TO RUN THE BOT!
For you to run the script you surely must execute the following command:
Moment OF truth
Now go to your chat server and ensure your bot is connected and on line, then kind in to the chat box !ping it must reply pong! to you.
CONGRATULATIONS YOU’VE MADE YOUR very own DISCORD BOT!
Properly it’s a start, but you by no means thought that it become easy huh?There are improve topics available especially if you’ll deep dive within the Discord API. For now this is a great begin to setup a bot.