Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/dxxxxy/discord.js-template
- Owner: dxxxxy
- Created: 2021-08-14T17:36:53.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-08-23T17:11:51.000Z (over 2 years ago)
- Last Synced: 2024-11-09T15:32:29.446Z (3 months ago)
- Topics: bot, discord-js, dotenv, mongoose, template
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.