Skip to content

This project is a command handler for a Discord bot built using the Discord.js library

License

Notifications You must be signed in to change notification settings

HrSApI/discordjs-handler-v14

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


mrhrs


Discord server Youtube Subscribers views on github NPM downloads

Discord.js Command Handler

Overview

This project is a command handler for a Discord bot built using the Discord.js library. It enables the bot to easily manage and execute slash commands in a structured and organized manner. This setup is ideal for developers looking to streamline their Discord bot's functionality.

Features

  • Slash Command Support: Easily add and manage slash commands.
  • Modular Structure: Each command is defined in its own file, promoting code organization and maintainability.
  • Embed Support: Use Discord embeds for rich message formatting.
  • User and Bot Management: List users and bots in the server with simple commands.

Getting Started

Prerequisites

  • Node.js (v16.9.0 or higher)
  • Discord.js (v14 or higher)
  • A Discord bot token

Installation

  1. Clone the repository:

    git clone https://github.com/HrSApI/discordjs-handler-v14.git
    cd discordjs-handler-v14
  2. Install dependencies:

    npm install
  3. Set up your bot token and mongodbURL:

    • Create a .env file in the root directory of the project and add your token:
      TOKEN=your_bot_token_here
      MONGO_URL=your_mongodb_url_here
      

Usage

  1. Start the bot:

    node index.js
  2. Interact with your bot on Discord using the registered slash commands.

Commands

  • /list: Displays a list of users and bots in the server.
  • /ping: Displays the bot's response time.

Contributing

Contributions are welcome! If you have suggestions or improvements, feel free to create a pull request or open an issue.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements

  • Discord.js for the powerful library that makes building Discord bots easier.
  • Node.js for the JavaScript runtime.

About

This project is a command handler for a Discord bot built using the Discord.js library

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published