Discord Bot Starter Template ๐
Welcome to the Discord Bot Starter Template! This project serves as a foundation for building feature-rich and scalable Discord bots using the Discord.js library. It incorporates modular design, dynamic command loading, error handling, and best practices to streamline bot development.
๐ Features
- โจ Modular Command System: Add or edit commands with ease.
- Slash Commands:
/help
,/ping
,/info
, etc. - Prefix Commands:
!help
,!ping
. - Moderation Tools: Ban, Mute, Timeout, Warn.
- Fun Commands: Generate jokes and more.
- Slash Commands:
- โ๏ธ Event Handling: Built-in support for Discord events and custom events.
- ๐ Configuration Management: Easy setup with
.env
or JSON config files. - ๐ก API Integrations: GitHub, RSS feeds, and more.
- ๐ ๏ธ Utility Functions: Includes logging, embed creation, and error handling.
- ๐พ Database Support: Integrates easily with MongoDB.
- ๐ Secure and Scalable: Follows best practices for security and scalability.
๐ Getting Started
๐ Prerequisites
- Node.js v16.6.0 or higher.
- npm v7 or higher.
- Discord Developer Portal account to create a bot.
๐ ๏ธ Installation
- Clone the repository:
git clone https://github.com/nexoscreation/discord-bot-template.git
cd discord-bot-template
- Install dependencies:
npm install
- Configure environment variables:
DISCORD_BOT_TOKEN=
DISCORD_BOT_PREFIX=!
DISCORD_BOT_CLIENT_ID=
DISCORD_BOT_CLIENT_SECRET=
DISCORD_GUILD_ID=
๐ Usage
To start the bot in production:
npm run bot:start
For development with hot reload:
npm run dev
๐ Available Commands
/ping
: Responds with "Pong!"/github user
: Fetches GitHub user data/ban [user]
: Bans a user (requires permissions)
๐ค Contributing
- Fork the repository.
- Create a feature branch.
- Make your changes.
- Submit a pull request.
๐ก๏ธ License
MIT License. See the LICENSE file for details.
๐ฌ Support
- Discord Server: Join Us
- GitHub Issues: Create an Issue
Made with โค๏ธ by the Discord Bot Team