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
  • Blog
  • About
  • Contact

Theme Settings

Color Scheme
Display Options
Font Size
100%
Back to Project
RSK World
discord-ai-bot
RSK World
discord-ai-bot
Discord AI Bot - Python + discord.py + OpenAI API + AI Bot + Server Management + Moderation
discord-ai-bot
  • __pycache__
  • cogs
  • .env712 B
  • .env.example198 B
  • .gitignore584 B
  • LICENSE1.2 KB
  • README.md1.4 KB
  • bot.py1.7 KB
  • config.py739 B
  • discord-ai-bot.svg1.3 KB
  • discord-ai-bot.zip22.6 KB
  • index.html6.2 KB
  • requirements.txt163 B
  • style.css4.6 KB
index.htmlREADME.mdconfig.pyGITHUB_RELEASE_INSTRUCTIONS.mdLICENSE.gitignore
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
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.py
Raw Download
Find: Go to:
"""
Discord AI Bot - Configuration
Author: RSK World
Website: https://rskworld.in
Email: help@rskworld.in
Phone: +91 93305 39277
Year: 2026
"""

import os
from dotenv import load_dotenv

load_dotenv()

# Bot Settings
BOT_PREFIX = "!"
INITIAL_EXTENSIONS = [
    'cogs.ai',
    'cogs.moderation',
    'cogs.management',
    'cogs.logging',
    'cogs.automation'
]

# AI Settings
OPENAI_API_KEY = os.getenv('OPENAI_API_KEY')
AI_MODEL = "gpt-3.5-turbo"

# Server Settings
LOG_CHANNEL_ID = os.getenv('LOG_CHANNEL_ID')
# Convert to int if it's set and is a valid number
if LOG_CHANNEL_ID:
    try:
        LOG_CHANNEL_ID = int(LOG_CHANNEL_ID)
    except (ValueError, TypeError):
        LOG_CHANNEL_ID = None
37 lines•739 B
python
LICENSE
Raw Download
Find: Go to:
MIT License

Copyright (c) 2026 RSK World

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

---

Author: RSK World
Website: https://rskworld.in
Email: help@rskworld.in
Phone: +91 93305 39277
Year: 2026

31 lines•1.2 KB
text
.gitignore
Raw Download
Find: Go to:
# Discord AI Bot - Git Ignore
# Author: RSK World
# Website: https://rskworld.in
# Year: 2026

# Environment variables
.env
.env.local
.env.*.local

# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg

# Virtual Environment
venv/
ENV/
env/
.venv

# IDE
.vscode/
.idea/
*.swp
*.swo
*~

# OS
.DS_Store
Thumbs.db
desktop.ini

# Logs
*.log
logs/

# Discord Bot
*.zip

# Temporary files
*.tmp
*.temp

62 lines•584 B
text
🚀 Support RSK World

Subscribe to our YouTube channel for latest tutorials & updates!



Click subscribe & support our work ❤️

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