help@rskworld.in +91 93305 39277
RSK World
  • Home
  • Development
    • Web Development
    • Mobile Apps
    • Software
    • Games
    • Project
  • Technologies
    • Data Science
    • AI Development
    • Cloud Development
    • Blockchain
    • Cyber Security
    • Dev Tools
    • Testing Tools
  • About
  • Contact

Theme Settings

Color Scheme
Display Options
Font Size
100%
Back to Project
RSK World
discord-ai-bot
/
cogs
RSK World
discord-ai-bot
Discord AI Bot - Python + discord.py + OpenAI API + AI Bot + Server Management + Moderation
cogs
  • __pycache__
  • __init__.py153 B
  • ai.py3.8 KB
  • automation.py2.2 KB
  • logging.py3.1 KB
  • management.py1.9 KB
  • moderation.py3.4 KB
README.mdconfig.cpython-313.pycchatbot.pypytest.iniindex.html.pre-commit-config.yaml
README.md
Raw Download

README.md

# Discord AI Bot
A comprehensive Discord bot project integrating AI capabilities, server management, and moderation tools.

**Author:** RSK World | **Website:** [rskworld.in](https://rskworld.in) | **Year:** 2026

## 🚀 Features
- **AI-Powered Responses:** Integrated OpenAI GPT models with conversation memory.
- **Logging System:** Tracks message deletions and member events.
- **Automation:** Automated welcome messages and anti-spam protection.
- **Server Management:** Tools for managing server information and roles.
- **Moderation Tools:** Kick, ban, and message clearing commands.
- **Modular Architecture:** Built using the `discord.py` Cogs framework.

## 🛠️ Technologies
- **Python:** The core programming language.
- **discord.py:** Library for Discord API.
- **OpenAI API:** For AI-driven capabilities.
- **HTML/CSS:** For the custom landing page.

## 📦 Installation
1. `pip install -r requirements.txt`
2. Create a `.env` file in the project root with the following variables:
```
DISCORD_TOKEN=your_discord_bot_token_here
OPENAI_API_KEY=your_openai_api_key_here
LOG_CHANNEL_ID=optional_log_channel_id
```
3. `python bot.py`

## 🔧 Commands
- `!ask <question>`: Get an AI-powered answer.
- `!clear_memory`: Reset AI history.
- `!kick`, `!ban`, `!clear`: Moderation tools.
- `!serverinfo`, `!roleadd`: Management tools.

---
© 2026 RSK World. All Rights Reserved.
config.cpython-313.pyc

This file cannot be displayed in the browser.

Download File
index.html
Raw Download
Find: Go to:
<!DOCTYPE html>
<html lang="en">
<!--
    Discord AI Bot Landing Page
    Author: RSK World
    Website: https://rskworld.in
    Email: help@rskworld.in
    Phone: +91 93305 39277
    Year: 2026
-->

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Discord AI Bot - RSK World</title>
    <link rel="stylesheet" href="style.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/font-awesome.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap" rel="stylesheet">
</head>

<body>
    <nav>
        <div class="container nav-container">
            <div class="logo">
                <i class="fab fa-discord"></i>
                <span>Discord AI Bot</span>
            </div>
            <ul>
                <li><a href="#features">Features</a></li>
                <li><a href="#demo">Demo</a></li>
                <li><a href="#contact">Contact</a></li>
            </ul>
        </div>
    </nav>

    <header class="hero">
        <div class="container hero-container">
            <div class="hero-content">
                <h1>Discord AI <span class="gradient-text">Bot</span></h1>
                <p>This Discord bot integrates AI capabilities for server management, moderation, and interactive
                    features. Perfect for Discord communities wanting AI-powered features.</p>
                <p class="sub-description">Discord bot with AI capabilities for server management and interactions.</p>
                <div class="hero-btns">
                    <a href="https://discord.com/api/oauth2/authorize?client_id=YOUR_CLIENT_ID&permissions=8&scope=bot"
                        class="btn btn-primary" target="_blank">Add to Discord</a>
                    <a href="#features" class="btn btn-secondary">Explore Features</a>
                </div>
            </div>
            <div class="hero-image">
                <img src="discord-ai-bot.svg" alt="Discord AI Bot Logo" id="project-hero-image">
            </div>
        </div>
    </header>

    <section id="features" class="features">
        <div class="container">
            <h2 class="section-title">Powerful Features</h2>
            <div class="feature-grid">
                <div class="feature-card">
                    <i class="fas fa-brain"></i>
                    <h3>AI Responses</h3>
                    <p>Powered by OpenAI's GPT models for natural and intelligent interactions with users.</p>
                </div>
                <div class="feature-card">
                    <i class="fas fa-shield-halved"></i>
                    <h3>Moderation</h3>
                    <p>Advanced tools for kicks, bans, and message clearing to keep your server safe.</p>
                </div>
                <div class="feature-card">
                    <i class="fas fa-cogs"></i>
                    <h3>Management</h3>
                    <p>Role management and server configuration made easy with simple commands.</p>
                </div>
                <div class="feature-card">
                    <i class="fas fa-history"></i>
                    <h3>AI Memory</h3>
                    <p>Dynamic conversation context memory allows for multi-turn interactions that feel natural.</p>
                </div>
                <div class="feature-card">
                    <i class="fas fa-list-check"></i>
                    <h3>Activity Logging</h3>
                    <p>Keep track of every event, message deletion, and member action in a dedicated log channel.</p>
                </div>
                <div class="feature-card">
                    <i class="fas fa-robot"></i>
                    <h3>Smart Automation</h3>
                    <p>Automated welcome messages and proactive anti-spam protection for a healthy community.</p>
                </div>
            </div>
        </div>
    </section>

    <section id="demo" class="demo">
        <div class="container">
            <h2 class="section-title">Interactive Demo</h2>
            <div class="demo-display">
                <div class="discord-chat">
                    <div class="message">
                        <span class="avatar"><i class="fas fa-user"></i></span>
                        <div class="content">
                            <span class="username">User</span>
                            <span class="timestamp">Today at 10:00 AM</span>
                            <p class="text">!ask Please remember my name is Sam.</p>
                        </div>
                    </div>
                    <div class="message bot">
                        <span class="avatar bot-avatar"><i class="fab fa-discord"></i></span>
                        <div class="content">
                            <span class="username">Discord AI Bot <span class="bot-badge">BOT</span></span>
                            <span class="timestamp">Today at 10:00 AM</span>
                            <div class="embed">
                                <h3>AI Response</h3>
                                <p>Understood, Sam! I've added that to my conversation memory. How can I assist you
                                    today?</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <footer id="contact">
        <div class="container footer-content">
            <div class="footer-info">
                <h3>RSK World</h3>
                <p>Empowering developers since 2026.</p>
                <div class="social-links">
                    <a href="mailto:help@rskworld.in"><i class="fas fa-envelope"></i></a>
                    <a href="https://rskworld.in"><i class="fas fa-globe"></i></a>
                </div>
            </div>
            <div class="footer-contact">
                <p>Email: help@rskworld.in</p>
                <p>Phone: +91 93305 39277</p>
                <p>© 2026 RSK World. All Rights Reserved.</p>
            </div>
        </div>
    </footer>
</body>

</html>
142 lines•6.2 KB
markup

About RSK World

Founded by Molla Samser, with Designer & Tester Rima Khatun, RSK World is your one-stop destination for free programming resources, source code, and development tools.

Founder: Molla Samser
Designer & Tester: Rima Khatun

Development

  • Game Development
  • Web Development
  • Mobile Development
  • AI Development
  • Development Tools

Legal

  • Terms & Conditions
  • Privacy Policy
  • Disclaimer

Contact Info

Nutanhat, Mongolkote
Purba Burdwan, West Bengal
India, 713147

+91 93305 39277

hello@rskworld.in
support@rskworld.in

© 2026 RSK World. All rights reserved.

Content used for educational purposes only. View Disclaimer