Welcome to the Discord Bot Starter Template! This template aims to provide a simple and easy-to-use starting point for developers who want to create their own Discord bots.
-
Basic bot structure with command and event handling.
-
Environment variable configuration.
-
Example commands to get you started.
-
Detailed documentation and comments in the code.
-
Easy setup and deployment.
-
Basic Commands (help, ping, etc...)
-
Moderation Commands (ban, kick, timeout, mute, etc...)
-
Utility Commands (info, clear, ping, etc...)
-
Music Commands (play, pause, stop, skip, etc...)
-
Many Event like welcome message, leave message etc..
-
Also Youtube video notify, Blog post notify, github post
-
Auto Mod spam protection and other
- Node.js (v14 or higher) for JavaScript bots.
- Discord Developer Portal account to create a bot and get your bot token.
-
Clone the repository:
git clone https://github.com/nexoscreator/bot-discord-starter.git cd bot-discord-starter
-
Install dependencies:
For JavaScript (Node.js) bot:
npm install
-
Configure environment variables:
Create a
.env
file in the root directory and add your bot token:DISCORD_TOKEN=your-bot-token-here
For JavaScript (Node.js) bot:
node index.js
Also
npm start
Deploy slash connamds
npm start:deploy
Delete Slash Commands
npm start:delete
Here are some example commands included in the template:
- ping: Responds with "Pong!" to test if the bot is running.
- help: Lists all available commands.
We welcome contributions! If you have any suggestions or improvements, please submit a pull request or open an issue on GitHub.
This project is licensed under the MIT License. See the LICENSE file for details.
- Discord.js for the Discord API wrapper.
- All contributors and users of this template.