Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antoinemcx/structure-discord-bot
🚀 Command, slash command & event handler - Discord Bot Template (v14)
https://github.com/antoinemcx/structure-discord-bot
command-handler discord-bot discord-bot-template discord-js discord-js-v14 discordjs event-handler slash-command-handler slash-commands
Last synced: 6 days ago
JSON representation
🚀 Command, slash command & event handler - Discord Bot Template (v14)
- Host: GitHub
- URL: https://github.com/antoinemcx/structure-discord-bot
- Owner: antoinemcx
- License: mit
- Created: 2020-05-31T20:30:08.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-11-23T21:53:32.000Z (2 months ago)
- Last Synced: 2025-01-15T20:16:53.917Z (13 days ago)
- Topics: command-handler, discord-bot, discord-bot-template, discord-js, discord-js-v14, discordjs, event-handler, slash-command-handler, slash-commands
- Language: JavaScript
- Homepage: https://discord.gg/G6WQsMQShZ
- Size: 93.8 KB
- Stars: 86
- Watchers: 1
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
Structure-Discord-Bot
Discord.js command, slash command & event handler by Melio.
If you like the project, feel free to put a ⭐ for better referencing ; If you need help, join the server support.
## Features
* 🚀 Ready to code Discord bot
* 🔨 Files and commands structure
* 📂 Classic and slash commands handler
* 🕐 The commands handlers contain permissions and cooldown checker
* 📋 A slash commands registration file
* 🎈 Event handler including error handler
## Starting the project
### Configuration
The configuration file named **config.js** have to content yout bot's token and prefix, and the IDs of all other owners (or just yours).
```js
module.exports = {
token: 'THE_BOT_TOKEN',
botID: 'THE_BOT_ID',
prefix: 'THE_BOT_PREFIX',
owner: [ "YOUR_DISCORD_ID" ],
};
```### Installation
```sh
$ npm install
```### Register slash commands
```sh
$ npm run slash
```### Start the bot
```sh
$ npm run start
```
## More
For any errors found, please contact me [here](https://discord.com/invite/G6WQsMQShZ) or do a pull request.
This repository is licensed under the MIT License. See the `LICENSE` file ([here](LICENSE)) for more information.