Skip to content

fossabot/discord.js-sample-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discord.js-sample-bot

FOSSA Status

A repository for people who are new to Discord.js

Built with LoveMade with JavaScript

License

Join Our Discord Server

FOSSA Status

Installation Procedure

Install Node.js

First you need to have Node.js installed on your PC or Server (wherever you will run your bot.) Download it from here.

It would take a lot of time for us to teach you how to install Node.js on your Operating System, so please learn how to install it first and then come back here.

Installing Dependencies

We need to install Discord.js library in order to get everything working.
We are going to do that with NPM (Node Package Manager).

We already included a package.json file that will tell NPM which dependencies needs to be installed.
You need to do npm install or npm install discord.js and wait for it to be installed.

Get a token from Discord

You need to navigate to the Developers Section of Discord and create an application. The procedure is extremely easy and step-by-step guided, so you shouldn't experience any problems.

After you have created your application, navigate to the "Bot" tab and create a bot account for your application.
Copy the token and enter it to config.json of the bot files you downloaded.

Run the application

Run Node.js client, navigate to the folder that you downloaded the files and type npm start or node index.js.
You're ready to go!

Contributing

Feel free to make contributions to the repository!

About

A repository for people who is new to Discord.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published