Skip to content

A comprehensive Discord bot with counting game, leveling system, welcome messages, anti-spam, and bad words filter! Uses MongoDB for data persistence.

Notifications You must be signed in to change notification settings

iammonsterbunny/Discord-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord

Advanced Discord Bot

A feature-rich Discord bot combining counting game, welcome messages, leveling system, anti-spam protection, and bad words filter. Uses MongoDB for data persistence and includes web dashboard.

Key Features

Anti-Spam System (New!)

  • Detects multiple messages sent within 5 seconds
  • Triggers on 4+ messages in quick succession
  • Auto-deletes spam messages
  • Temporary timeout for offenders
  • Warning messages with auto-cleanup
  • Immune roles for trusted users
  • Detailed logging with timestamps
  • Customizable timeout duration

Bad Words Filter (New!)

  • Extensive predefined word list
  • Custom word additions
  • Smart word detection
  • Automatic message removal
  • DM notifications to users
  • Detailed logging system
  • Role-based immunity
  • Per-server configuration

Counting System

  • Allows users to count in sequence
  • Deletes incorrect numbers and notifies users
  • Prevents consecutive counting by the same user
  • Special reactions for milestone numbers:
    • ✅ Regular correct numbers
    • ✨ Multiples of 25
    • ⭐ Multiples of 50
    • 🎉💯 Multiples of 100
  • Stores progress in MongoDB

Welcome System

  • Customizable welcome messages for new members
  • Support for welcome images with URL validation
  • Automatic fallback to text-only if image fails
  • Uses placeholders for dynamic mentions
  • Configurable welcome channel

Leveling System

  • Experience (XP) gain from chat activity
  • Level-up notifications with custom messages
  • Beautiful rank cards showing progress
  • Server-wide leaderboard with error handling
  • Anti-spam cooldown system
  • Custom level-up channel

Prerequisites

  • Node.js
  • MongoDB database
  • Discord Bot Token

Installation

  1. Clone the repository:

    git clone https://github.com/iammonsterbunny/counting-discord-bot.git
    cd counting-discord-bot
  2. Install dependencies:

    npm install
  3. Configure your .env file:

    DISCORD_TOKEN=your_discord_token
    MONGO_URI=your_mongodb_uri
    BOT_STATUS=idle
  4. Start the bot:

    node index.js

Commands

Setup Commands

  • /setup [channel] - Set the counting channel
  • /setwelcome [channel] [message] [imagelink?] - Configure welcome messages
  • /levelsetup [channel] [message] - Set up level-up notifications

User Commands

  • /rank [user?] - Check your or someone else's rank
  • /leaderboard - View server XP leaderboard

Placeholders

  • Welcome Messages: {@user} - Mentions the new member
  • Level-up Messages: {@user} and {@level} - Mentions user and shows new level

Dependencies

Examples

Welcome Message Setup

/setwelcome channel:#welcome message:"Welcome {@user} to our server!" imagelink:https://example.com/welcome.png

Level-up Notification Setup

/levelsetup channel:#level-ups message:"🎉 {@user} has reached level {@level}!"

License

This project is licensed under the MIT License.


Repo views


Made with ❤️ by Monster Bunny

About

A comprehensive Discord bot with counting game, leveling system, welcome messages, anti-spam, and bad words filter! Uses MongoDB for data persistence.

Topics

Resources

Security policy

Stars

Watchers

Forks

Packages

No packages published