stelzoplayzz

Create a discord bot with features of creating embed with dropdown/buttons, welcoming and also can connect welcome with the embed like mimu discord bot and add some variables too and It should have features of ticket cretion with multiple menus and auto moderation

Kodari AI
KodariFeb 21 at 4:34 pm 19,670 (v2)

Iโ€™ll create a comprehensive Discord bot with embed builder, welcome system, ticket management, and auto-moderation features.

AdvancedDiscordBot
A multi-featured Discord bot with advanced embed builder supporting buttons and dropdowns, customizable welcome system with variables similar to Mimu bot, multi-menu ticket creation system with category support, and comprehensive auto-moderation including spam detection, bad word filtering, and raid protection. Includes persistent data storage and admin configuration commands.

Perfect! Iโ€™ve created a comprehensive Discord bot with all the requested features:

Features implemented:

  1. Embed Builder - Interactive embed creation with modals for title, description, color, fields, footer, images, buttons, and dropdowns

  2. Welcome System - Full welcome message system with customizable embeds and text messages, supporting multiple variables like {user}, {server}, {membercount}, etc.

  3. Ticket System - Multi-panel ticket creation with dropdown menus, ticket categories, claiming, closing, and logging

  4. Auto Moderation - Spam detection, bad word filtering, excessive mention protection, raid detection, warnings system, and auto-timeout for repeat offenders

The bot uses SQLite database for persistent storage, includes slash commands, and has comprehensive permission checks. Add your Discord token to the .env file and run python bot.py to start!

Kodari can make mistakes. Review important code before using.
Files
cogs
utils
.gitignore
bot.py
config.json
README.md
requirements.txt
Code
10 1,692
bot.py
import discord
from discord.ext import commands
import os
from dotenv import load_dotenv
import json
import asyncio
import logging

load_dotenv()

logging.basicConfig(level=logging.INFO)

intents = discord.Intents.all()
bot = commands.Bot(command_prefix='!', intents=intents, help_command=None)

@bot.event
async def on_ready():
    print(f'Bot is ready! Logged in as {bot.user}')
    print(f'Bot ID: {bot.user.id}')
    print('------')
    try:
        synced = await bot.tree.sync()
        print(f'Synced {len(synced)} slash commands')
    except Exception as e:
        print(f'Failed to sync commands: {e}')

async def load_cogs():
    cogs = ['cogs.embed_builder', 'cogs.welcome', 'cogs.tickets', 'cogs.automod']
    for cog in cogs:
        try:
            await bot.load_extension(cog)
            print(f'Loaded {cog}')
        except Exception as e:
            print(f'Failed to load {cog}: {e}')

async def main():
    async with bot:
        await load_cogs()
        await bot.start(os.getenv('DISCORD_TOKEN'))

if __name__ == '__main__':
    asyncio.run(main())