Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/towsifkafi/discordjs-v14-template
A simple Discord.JS v14 message command/slash command and apps handler template.
https://github.com/towsifkafi/discordjs-v14-template
discord-bot discord-bot-template discordjs discordjs-command-handler discordjs-template discordjs-v14 discordjs-v14-bot-template v14-discord-bot-template
Last synced: about 1 month ago
JSON representation
A simple Discord.JS v14 message command/slash command and apps handler template.
- Host: GitHub
- URL: https://github.com/towsifkafi/discordjs-v14-template
- Owner: towsifkafi
- License: mit
- Created: 2024-03-25T08:35:53.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-08-29T19:48:19.000Z (4 months ago)
- Last Synced: 2024-08-29T22:01:58.692Z (4 months ago)
- Topics: discord-bot, discord-bot-template, discordjs, discordjs-command-handler, discordjs-template, discordjs-v14, discordjs-v14-bot-template, v14-discord-bot-template
- Language: JavaScript
- Homepage:
- Size: 340 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Discord.JS v14 Template
**A simple Discord.js message command/slash command and apps handler template. I created this project to simplify the process of creating new bots and avoid writing the same code again.**
Some of the main focuses of this template are **command/event handlers** and **app handlers**. Command handlers also include **permissions, aliases, and autocomplete** functionality.
## How to Install
- You'll need [NodeJS](https://nodejs.org/en) (16.11+). And a package manager for node. (npm, pnpm or yarn)
- To get started with this project clone this repository to a folder and execute the following commands to that folder.
```bash
npm install
# or
pnpm install
# or
yarn install
```
- Once all dependencies are installed, rename `.env_copy` to `.env` and enter environment values `CLIENT_ID`, `TOKEN` and `TEST_GUILD` in this file. If you leave `TEST_GUILD` empty, the bot will register slash commands to all servers.- Your application needs the following intents to be allowed `PRESENCE`, `MESSAGE` and `GUILD MEMBER`. You can enable them in your [Discord Developer Dashboard](https://discord.com/developers/applications) or disable the intents you don't need from `index.js` file. Privileged intents are are marked with comments.
After finishing the cofiguration run -
```
npm start
# or
node index.js
```If everything is done correctly, your terminal should look like this -
![Start](assets/startup.png)
#[](https://discord.com/users/565102845926572033)
If you happen to spot any problem or errors in this project, please create a pull request or contact me through my Discord, which is [**towsif.kafi**](https://discord.com/users/565102845926572033). I'm always open to receiving direct messages and would be more than happy to help you out in any way possible.