Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions examples/bot/containers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# How Works Containers?

# First import the Modul
import discord
from discord.ui import Container # Import the Container Modul
import ezcord

class ContainerExample(ezcord.Cog):
def __init__(self, bot):
self.bot = bot

@discord.slash_command(name="container", description="Zeigt ein Container an")
async def container(self, ctx: discord.ApplicationContext):
container = Container() # Define the Container
container.add_text("Hello World") # Add a Text to the Container
container.add_separator() # Add a Separator to the Container
container.add_text("Hello World") # Add a Text to the Container
view = discord.ui.DesignerView(container, timeout=0) # Define the View
await ctx.respond(view=view)

def setup(bot):
bot.add_cog(ContainerExample(bot)) # Add the Cog to the Bot



4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
<meta property="og:title" content="ManagerX - Der ultimative Discord Bot" />
<meta property="og:description" content="Moderation, Levelsystem, Globalchat und mehr für deinen Discord Server" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://lovable.dev/opengraph-image-p98pqg.png" />
<meta property="og:image" content="/logo.png" />

<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@ManagerX" />
<meta name="twitter:image" content="https://lovable.dev/opengraph-image-p98pqg.png" />
<meta name="twitter:image" content="/logo.png" />

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,11 @@
"eslint-plugin-react-refresh": "^0.4.20",
"globals": "^15.15.0",
"jsdom": "^20.0.3",
"lovable-tagger": "^1.1.13",
"postcss": "^8.5.6",
"tailwindcss": "^3.4.17",
"typescript": "^5.8.3",
"typescript-eslint": "^8.38.0",
"vite": "^5.4.19",
"vitest": "^3.2.4"
}
}
}
109 changes: 75 additions & 34 deletions requirements/req.txt
Original file line number Diff line number Diff line change
@@ -1,44 +1,85 @@
# --- Deine Online Packages (ManagerX Ecosystem) ---
ManagerX-DevTools==1.2026.1.11.1
ManagerX-Handler==1.2026.1.10

# --- Core Frameworks & Discord ---
ezcord==0.7.4
py-cord==2.7.0
aiosqlite==0.22.1
aiohttp==3.13.3
better-ipc==2.0.3
fastapi==0.115.6
uvicorn==0.34.0
starlette==0.46.2

# --- Async & Performance ---
aiocache==0.12.3
propcache==0.4.1
requests==2.32.5
wikipedia==1.4.0
beautifulsoup4==4.14.3
soupsieve==2.8.1
yarl==1.22.0
aiohappyeyeballs==2.6.1
aiohttp==3.13.2
aiosignal==1.4.0
aiosqlite==0.22.1
anyio==4.9.0
frozenlist==1.8.0
h11==0.16.0
multidict==6.7.0
propcache==0.4.1
sniffio==1.3.1
websockets==14.1


# Dev
python-dotenv==1.2.1
click==8.3.1
colorama==0.4.6
typing_extensions==4.15.0
typing-inspection==0.4.2
attrs==25.4.0
# --- Data & Validation ---
annotated-types==0.7.0
anyio==4.12.1
certifi==2026.1.4
charset-normalizer==3.4.4
pydantic==2.11.7
pydantic_core==2.33.2
PyYAML==6.0.1
typing_extensions==4.15.0
typing-inspection==0.4.1

# --- HTTP & Web ---
requests==2.32.3
requests-toolbelt==1.0.0
httpx==0.24.1
httpcore==0.17.3
h11==0.14.0
urllib3==2.4.0
yarl==1.22.0
certifi==2025.4.26
charset-normalizer==3.4.2
idna==3.11
urllib3==2.6.3
Jinja2==3.1.6
MarkupSafe==3.0.3
starlette==0.50.0
FastAPI
uvicorn
SimpleColoredLogs
rfc3986==2.0.0

# --- UI, Imaging & Logging ---
beautifulsoup4==4.13.4
soupsieve==2.7
easy-pil==0.4.0
pillow==10.4.0
SimpleColoredLogs==1.3.0
colorama==0.4.6
rich==13.5.2
Pygments==2.19.2
markdown-it-py==4.0.0
mdurl==0.1.2

# --- System & Utilities ---
click==8.2.1
psutil==5.9.5
python-dotenv==1.1.0
timedelta==2020.12.3
pytz==2025.2
DateTime==5.1
six==1.17.0
cffi==1.17.1
pycparser==2.22
PyNaCl==1.5.0
zope.interface==8.2

# Docs
sphinx
pydata-sphinx-theme
sphinx-autodoc-typehints
myst-parser
sphinx-copybutton
sphinx-autobuild
# --- Template Engines ---
Jinja2==3.1.6
MarkupSafe==3.0.2

# --- Helpers & Docs ---
wikipedia==1.4.0
packaging==25.0
pathlib==1.0.1
more-itertools==10.8.0
jaraco.classes==3.4.0
jaraco.context==6.0.1
jaraco.functools==4.3.0
docutils==0.22.3
nh3==0.3.2Ne
86 changes: 86 additions & 0 deletions src/bot/cogs/bot/about.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# Copyright (c) 2025 OPPRO.NET Network
import discord
from discord.ext import commands
import ezcord
from datetime import datetime
import platform
import sys
import time
from discord.ui import Container


class AboutCog(commands.Cog):
def __init__(self, bot):
self.bot = bot
# Fallback for uptime if bot.uptime is not set
if not hasattr(self.bot, 'uptime'):
self.bot.uptime = datetime.now()

@discord.slash_command(name="about", description="Zeigt Informationen über den Bot an")
async def about(self, ctx: discord.ApplicationContext):
"""Shows advanced information about the bot."""
await ctx.defer()

# Determine versions
python_version = platform.python_version()
discord_version = discord.__version__
ezcord_version = ezcord.__version__

# Calculate uptime
uptime = discord.utils.format_dt(self.bot.uptime, style="R")

# Calculate ping
ping = f"**{round(self.bot.latency * 1000)}ms**"

# Counts
server_count = len(self.bot.guilds)
member_count = sum(g.member_count for g in self.bot.guilds)

# Create Container
container = Container()

# Header
container.add_text(f"# ℹ️ Über {self.bot.user.name}")
container.add_text(
"Ein fortschrittlicher Management-Bot entwickelt für professionelle Communities.\n"
"ManagerX bietet umfangreiche Tools für Moderation, Statistiken und Server-Verwaltung."
)
container.add_separator()

# Development
container.add_text("## 👨💻 Entwicklung")
container.add_text(
"Entwickelt von **ManagerX Development**\n"
"❯ [🌐 Website](https://managerx-bot.de)\n"
"❯ [💬 Support Server](https://discord.gg/uDDWzsZNzD)"
)
container.add_separator()

# Stats
container.add_text("## 📊 Statistiken")
container.add_text(
f"❯ **Server:** `{server_count}`\n"
f"❯ **User:** `{member_count:,}`\n"
f"❯ **Ping:** {ping}\n"
f"❯ **Uptime:** {uptime}"
)
container.add_separator()

# Technical
container.add_text("## 🛠️ Technik & Versionen")
container.add_text(
f"❯ **Python:** `v{python_version}`\n"
f"❯ **PyCord:** `v{discord_version}`\n"
f"❯ **EzCord:** `v{ezcord_version}`"
)
container.add_separator()

# Footer
container.add_text(f"{datetime.now().year} ManagerX Development • ManagerX v2.0.0")

# Send View
view = discord.ui.DesignerView(container, timeout=0)
await ctx.respond(view=view)

def setup(bot):
bot.add_cog(AboutCog(bot))
Loading