Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dxxxxy/discord.js-template

Easy to use and configure discord.js bot template with dotenv and mongoose pre-integrated.
https://github.com/dxxxxy/discord.js-template

bot discord-js dotenv mongoose template

Last synced: 29 days ago
JSON representation

Easy to use and configure discord.js bot template with dotenv and mongoose pre-integrated.

Awesome Lists containing this project

README

        

# Discord.js Template
Easy to use and configure discord.js bot template with dotenv and mongoose pre-integrated.
## npm Dependencies
```js
├── [email protected]
├── [email protected]
└── [email protected]
```
## .env Configuration
```js
# Necessary
CLIENT_TOKEN="" //your bot's client token
PREFIX="" //your own prefix

# Optional
DATABSE=""
```
## Installation
1. Clone this repository using git clone https://github.com/DxxxxY/Discord.js-Template.git
2. Install dependencies using npm i
3. Create a `.env` file while following [.env Configuration](#env-configuration)
4. Start the bot using node .
> Congrats, you made it!
## How to use
- If you want to create a command, do so in the `commands` folder, the file should have the intended command's name as its file name.
> You can check out the [info](commands/info.js) command's comments to familiarize yourself more with this template.
- If you want to create an event, do so in the `events` folder, the file should have the intended event's name as its file name.
> You can find all the event names at: [Client Event List](https://discord.js.org/#/docs/main/stable/class/Client?scrollTo=e-applicationCommandCreate).

> You can check out the [ready](events/ready.js) event's comments to familiarize yourself more with this template.