Skip to content

nexoslabs/bot-discord-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

32 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Discord Bot Starter Template πŸš€

This project is a strong foundation for building powerful, scalable Discord bots using Discord.js. It focuses on best practices, modular structure, dynamic command/event handling, and modern development standards.


🌟 Features

✨ Modular Command System

Organized by categories for both prefix, context and slash commands.

βš™οΈ Dynamic Event Handling

Built-in support for major Discord events with dynamic event loading for scalability.

πŸ“œ Easy Configuration

Manage environment variables and bot settings via .env files or JSON configs.

πŸ“‘ API Integration Ready

Example setups for connecting to external APIs like GitHub, RSS feeds, and more.

πŸ› οΈ Utility Functions

Pre-built utilities for logging, embed creation, and more to streamline development.


πŸš€ Getting Started

πŸ“‚ Prerequisites

Ensure you have the following installed:

πŸ› οΈ Installation

Follow these steps to set up the bot on your local machine:

  1. Clone the repository:
git clone https://github.com/nexoslabs/bot-discord-template.git
  1. Install dependencies:
npm install

πŸ“œ Environment Setup

Create a .env file in the root directory:

DISCORD_BOT_TOKEN=your-token
DISCORD_BOT_PREFIX=!
DISCORD_CLIENT_ID=your-client-id
DISCORD_GUILD_ID=your-guild-id (optional for testing)

πŸ“œ Usage

πŸ”₯ Running the Bot

Production Mode:

npm run bot:start

Development Mode (hot reload):

npm run dev

βš™οΈ Commands

Deploying Slash Commands

npm run bot:deploy

Deleting All Slash Commands

npm run bot:delete

πŸ“œ Available Commands

Command Type Description
!help Prefix Lists all available commands
!info Prefix Displays bot information
!ping Prefix Check bot and API latency
!say Prefix Make the bot repeat a message
!server Prefix Displays server information
!user Prefix Displays your user details

πŸ›‘οΈ Moderation Slash Commands

Command Description
/ban Bans a user
/unban Unbans a user
/kick Kicks a user
/mute Mutes a user
/unmute Unmutes a user
/timeout Temporarily mutes a user
/untimeout Removes timeout
/warn Warns a user
/purge Bulk deletes messages
/slowmode Enables channel slowmode

πŸ“š Utilities

  • Embed Builder β€” Create reusable, styled Discord embeds
  • Logger β€” Color-coded logs for different levels (info, warn, error)
  • Centralized Error Handler β€” Catch and manage runtime errors

πŸ“š Documentation

Comming Soon!


🀝 Contributing

We ❀️ contributions! Follow these steps to contribute:

  1. 🍴 Fork the repository
  2. 🌿 Create a new branch (git checkout -b feature/AmazingFeature)
  3. πŸ’Ύ Commit your changes (git commit -m 'Add some AmazingFeature')
  4. πŸš€ Push to the branch (git push origin feature/AmazingFeature)
  5. πŸ”ƒ Open a Pull Request

πŸ“– See our Contribution Guidelines for more details.


πŸ“„ License

This project is licensed under the Apache-2.0 license. See the LICENSE file for details.


πŸŽ‰ Acknowledgments

Special thanks to:

  • Discord.js team for the amazing library
  • Node.js team
  • All open-source contributors πŸ’–

πŸ“¬ Contact & Community

πŸ’¬ Join us on Discord: Click Here
🐦 Follow on Twitter: @nexoslabs
πŸ“§ Email: contact@nexoscreation.tech

Made with ❀️ by the @nexoslabs Team

⭐ Star us on GitHub!

About

A modular and scalable Discord bot starter template using Discord.js

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •