Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danteon0/discord-bot-template-v14
Discord slash commands bot template for discord.js v14
https://github.com/danteon0/discord-bot-template-v14
discord discord-api discord-bot discord-js discordapp discordbot discordjs template template-project template-repository v14 v14-bot v14-discord-bot-template v14-js
Last synced: 2 months ago
JSON representation
Discord slash commands bot template for discord.js v14
- Host: GitHub
- URL: https://github.com/danteon0/discord-bot-template-v14
- Owner: Danteon0
- License: mit
- Created: 2024-08-05T13:07:43.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-19T13:38:07.000Z (4 months ago)
- Last Synced: 2024-10-12T02:41:32.659Z (2 months ago)
- Topics: discord, discord-api, discord-bot, discord-js, discordapp, discordbot, discordjs, template, template-project, template-repository, v14, v14-bot, v14-discord-bot-template, v14-js
- Language: JavaScript
- Homepage: https://emirhankaya.net
- Size: 2.66 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: contributing.md
- License: LICENSE
- Code of conduct: code_of_conduct.md
- Security: SECURITY.md
Awesome Lists containing this project
README
[![Discord Presence](https://lanyard.cnrad.dev/api/496393095282294796)](https://discord.com/users/496393095282294796)
# π€ Discord v14 Bot Infrastructure
This project is a bot infrastructure prepared using version 14 of the Discord.js library. It provides an easy-to-use, flexible, and extensible structure, allowing you to quickly develop your own Discord bot.
## βοΈ Setup
### π Requirements
- Node.js v16 or higher
- NPM or Yarn### π Steps
1. Clone this project:
```bash
git clone https://github.com/Danteon0/discord-bot-template-v14.git
cd discord-bot-template-v14
```2. Install the necessary dependencies:
```bash
npm install
```3. Edit the `config.json` file and enter the required information:
```json
{
"author": ["AUTHOR_ID"], // Your discord client ID
"token": "BOT_TOKEN", // Bot token
"clientId": "CLIENT_ID", // Bot client ID
"embedcolor": "#5865f2" // Embed color for manage embed colors one line
}
```4. Upload slash commands to discord:
```bash
node deploy-commands.js
```5. Start the bot:
```bash
node main.js
```## π Usage
- Commands are located in the `commands` folder. To add a new command, create a new JavaScript file in this folder.
- Events are located in the `events` folder. To add a new event, create a new JavaScript file in this folder.## π€ Contribution
We welcome contributions! Please read the [CONTRIBUTING.md](contributing.md) file before contributing.
## π License
This project is licensed under the [MIT License](LICENSE).
---
You can use this infrastructure to develop your own bot projects and contribute to the Discord community. Happy coding!
## πDetailed Setup Guide
### π Creating a Bot
1. Go to the [Discord Developer Portal](https://discord.com/developers/applications).
2. Click on the "New Application" button.
3. Enter a name for your application and click "Create".
4. Navigate to the "Bot" section on the left sidebar.
5. Click on "Add Bot" and confirm.
6. Your bot is now created. You can find the "Token" here, which you will use in your `config.json`.### π Obtaining a Bot Token
1. In the "Bot" section of your application, click on the "Copy" button under the "Token" section.
2. Paste this token into the `config.json` file as shown above.### π Enabling Intents
1. In the "Bot" section of your application, scroll down to the "Privileged Gateway Intents" section.
2. Enable the "Presence Intent" and "Server Members Intent" if your bot requires them.### π Getting a Bot Invite Link
1. Go to the "OAuth2" section on the left sidebar.
2. Click on "URL Generator".
3. In the "Scopes" section, select "bot" and "applications.commands".
4. In the "Bot Permissions" section, select the permissions your bot needs.
5. Copy the generated URL and use it to invite your bot to your server.### π Installing Node.js
1. Go to the [Node.js official website](https://nodejs.org/).
2. Download the LTS version suitable for your operating system.
3. Follow the installation instructions provided.
---## π οΈ Support
If you need help or have any questions, feel free to reach out:
- **Join our Discord server:** [Join here](https://discord.com/invite/eWcNKXmsgw)
- **Visit our website:** [emirhankaya.net](https://emirhankaya.net)
- **Follow on Twitter:** [Danteon0](https://x.com/Danteon0)By following these detailed instructions, you can set up your own Discord bot using this infrastructure. Enjoy building your bot!