Discord.JS Examples
What is this?
Discord.JS Examples is a repository that contains various code examples for the Discord.JS library. The code examples in this repository should not be used in production because they were originally created for educational purposes only.
Installation
The installation process is quite easy. The first step is to clone this repository:
git clone https://github.com/JakyeRU/discord.js-examples.git
The second step is to CD into the directory and run the installation script:
cd .\discord.js-examples\
.\Install.bat
The script will create a .env
file from .env.example
and install the required dependencies.
The fourth step is to put your bot's authentication token in .env
.
Usage
Before using any example in this repository, you need to check config.json
and complete any necessary information.
Then, you can run index.js
and choose an example from the list:
node .\index.js
Use the Up
& Down
arrows to navigate and Enter
to select.