Skip to content

actuallysena/GreeterBot

Repository files navigation

TheGreeter 🤖

Modular Discord Onboarding & Auto-Reply Bot

TheGreeter is a fully configurable, JSON-driven Discord bot designed to handle server onboarding, user registration, and smart auto-reply workflows with a clean and minimal architecture.

It is built to be easy to deploy, easy to maintain, and easy to extend, without relying on external AI APIs.


✨ Features

  • Server Onboarding

    • Customizable welcome and system messages
    • Guided registration flow (name, age, preferred nickname, etc.)
    • Regex-based input validation
  • Smart Auto-Reply System

    • JSON-based prompt–response matching
    • Hybrid matching logic
    • Bot mention–specific reply groups
    • Fallback responses for unmatched messages
  • Server-Specific Configuration

    • Full guild_id isolation
    • Each server has its own settings and reply data
    • Multi-server support out of the box
  • Command-Based Management

    • Add, remove, or list reply groups via commands
    • Toggle chatbot behavior per server
    • Customize system messages without editing code
  • Clean & Minimal Architecture

    • Single entry point
    • No database required (JSON-based persistence)
    • Environment-based token management (.env)

📁 Project Structure

container/ ├── Selamlayici.py # Main bot entry point ├── responder.py # Reply loading & matching logic ├── replies.json # Prompt–response data (per guild) ├── ayarlar.json # Server-specific settings ├── chatbot_settings.py # Chatbot configuration commands ├── requirements.txt └── .env # Discord token (not committed)


🚀 Installation

1️⃣ Clone the Repository

git clone https://github.com/yourusername/TheGreeter.git
cd TheGreeter/container

2️⃣ Install Dependencies

pip install -r requirements.txt

3️⃣ Configure Environment Variables

Create a .env file:

DISCORD_TOKEN=your_discord_bot_token

4️⃣ Run the Bot

python Selamlayici.py

No additional setup is required. The bot initializes its configuration automatically.


🧠 How It Works (Conceptual)

  • Messages are evaluated only in configured channels
  • Incoming messages are matched against JSON-defined prompts
  • If the bot is mentioned, a special prompt group is used
  • Responses are randomly selected from matched reply pools
  • All data is stored per server, not globally

🛠 Commands Overview

Command names may vary based on server language settings.

  • /yanit_ekle – Add new prompts and responses
  • /yanit_sil – Remove an entire prompt group
  • /yanit_sil_tek – Remove a single response from a group
  • /yanitlar – List existing prompt–response groups

🔐 Security & Design Notes

  • No hardcoded tokens
  • No external AI or paid APIs
  • Predictable and transparent behavior
  • Designed for long-term maintainability

📌 Use Cases

  • Community servers
  • Writing & creative servers (Wattpad-style)
  • Roleplay servers
  • Moderated onboarding flows
  • Lightweight chatbot interactions

🧩 Extensibility

TheGreeter is intentionally designed as a base system.

You can easily extend it with:

  • AI integrations
  • Database persistence
  • Moderation tools
  • Analytics & logging
  • Web dashboards

📄 License

This hobby project is open-source and intended for educational and community use. You are free to modify and adapt it to your needs.


TheGreeter Simple. Modular. Server-aware.

About

A hobby project: TheGreeter, a modular Discord bot designed for server onboarding, registration, and configurable auto-reply workflows. Core features included: - JSON-based prompt–response system with hybrid matching - Server-specific (guild_id) configuration and data isolation - Customizable welcome, registration, and system message

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages