Skip to content

Project: Discord Bot with 100+ Slash Commands, Automod, Music, Giveaways, Rankings, Polls. Created at https://spectra.codes, which is owned by @Drix10

Notifications You must be signed in to change notification settings

coslynx/discord-server-management-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Comprehensive-Discord-Bot

A Multi-faceted Discord Bot for Server Management and Engagement

Developed with the software and tools below.

Programming Language - JavaScript Framework - Discord.js Database - MongoDB

git-last-commit GitHub commit activity GitHub top language

📑 Table of Contents

  • 📍 Overview
  • 📦 Features
  • 📂 Structure
  • 💻 Installation
  • 🏗️ Usage
  • 🌐 Hosting
  • 📄 License
  • 👏 Authors

📍 Overview

This repository hosts a multi-faceted Discord bot, designed to empower server administrators and enhance user engagement. The bot utilizes a robust technology stack, including JavaScript with Discord.js framework and MongoDB for data storage. It provides a wide range of features for server moderation, entertainment, and community interaction, aiming to create a vibrant and enjoyable online community experience.

📦 Features

Feature Description
⚙️ Architecture The bot is structured with a modular architecture, dividing functionalities into distinct modules for better organization and maintainability.
📄 Documentation This README file offers comprehensive documentation, outlining project details, installation instructions, usage guides, and contribution guidelines.
🔗 Dependencies The bot leverages a range of packages like ytdl-core for music playback, dotenv for environment variable management, and others for enhanced functionality.
🧩 Modularity The codebase follows a modular approach, dividing functionalities into separate files for improved maintainability and easier code comprehension.
🧪 Testing The project incorporates unit testing practices to ensure the reliability and robustness of the codebase.
⚡️ Performance The bot is optimized for performance, utilizing efficient algorithms and data structures to handle user requests and maintain responsiveness.
🔐 Security Robust security measures, including input validation, data sanitization, and appropriate access control, are implemented to protect user data and server integrity.
🔀 Version Control Git is used for version control, allowing for collaborative development and efficient tracking of changes.
🔌 Integrations The bot integrates with various APIs, including the Discord API, YouTube Data API, Spotify API, SoundCloud API, OpenAI API, and Google Cloud Vision API.
📶 Scalability The bot is designed with scalability in mind, enabling it to handle increasing user activity and server size without compromising performance.

📂 Structure

├── bot
│   ├── src
│   │   ├── commands
│   │   │   ├── user.ts
│   │   │   ├── help.ts
│   │   │   ├── ranking.ts
│   │   │   ├── moderation.ts
│   │   │   ├── poll.ts
│   │   │   ├── giveaway.ts
│   │   │   └── music.ts
│   │   ├── events
│   │   │   ├── guildMemberRemove.ts
│   │   │   ├── guildMemberAdd.ts
│   │   │   ├── interactionCreate.ts
│   │   │   ├── messageCreate.ts
│   │   │   └── ready.ts
│   │   ├── services
│   │   │   ├── user.service.ts
│   │   │   ├── ranking.service.ts
│   │   │   ├── moderation.service.ts
│   │   │   ├── poll.service.ts
│   │   │   ├── giveaway.service.ts
│   │   │   └── music.service.ts
│   │   ├── utils
│   │   │   ├── embedBuilder.ts
│   │   │   ├── errorHandler.ts
│   │   │   ├── logger.ts
│   │   │   └── commandHandler.ts
│   │   ├── config
│   │   │   ├── database.config.ts
│   │   │   └── env.config.ts
│   │   └── main.ts
│   └── package.json
└── api
    └── src
        └── main.ts

💻 Installation

🔧 Prerequisites

  • Node.js
  • npm

🚀 Setup Instructions

  1. Clone the repository:
    • git clone https://github.com/coslynx/Comprehensive-Discord-Bot.git
  2. Navigate to the project directory:
    • cd Comprehensive-Discord-Bot
  3. Install dependencies:
    • npm install

🏗️ Usage

🏃‍♂️ Running the Project

  1. Start the development server:
    • npm start
  2. Open your browser and navigate to http://localhost:3000.

⚙️ Configuration

Adjust configuration settings in 'config.js' or '.env'.

📚 Examples

  • 📝 Example 1: How to use the music commands
    • !play <song name>: Plays a song from YouTube
    • !queue <song name>: Adds a song to the queue
    • !skip: Skips the current song
    • !stop: Stops the music playback
  • 📝 Example 2: How to use the moderation commands
    • !mute <user>: Mutes a user
    • !unmute <user>: Unmutes a user
    • !kick <user>: Kicks a user from the server
    • !ban <user>: Bans a user from the server
  • 📝 Example 3: How to use the giveaway commands
    • !giveaway <duration> <prize>: Starts a new giveaway
    • !enter: Enters the current giveaway
    • !endgiveaway: Ends the current giveaway

🌐 Hosting

🚀 Deployment Instructions

  1. Prerequisites:
    • Heroku account
    • Heroku CLI (npm install -g heroku)
  2. Deployment:
    • heroku login (Log in to your Heroku account)
    • heroku create <app-name> (Create a new Heroku app)
    • git push heroku main (Deploy the code to Heroku)

🔑 Environment Variables

  • DISCORD_TOKEN: Your Discord bot token
  • MONGO_URI: Your MongoDB connection string

📜 License

This project is licensed under the MIT license.

👥 Authors

🌐 Spectra.Codes

Why only generate Code? When you can generate the whole Repository!