Update project configuration files, and API routes accordingly. Add SQLite runtime file ignores to .gitignore for better file management.
Some checks failed
CI / Bot (Python) (push) Failing after 49s
CI / Dashboard (Next.js) (push) Failing after 11s

This commit is contained in:
TheOnlyMace
2026-07-21 17:11:38 +02:00
parent 5f34db4f3b
commit b4110c3d66
297 changed files with 2657 additions and 2768 deletions

View File

@@ -1,19 +1,18 @@
# ╔══════════════════════════════════════════════════════════════════╗
# ║ ║
# ║ ░█▀▀░█▀█░█▀▄░█▀▀░█░█ ░█▀▄░█▀▀░█░█░█▀▀
# ║ ░█░░░█░█░█░█░█▀▀░▄▀▄ ░█░█░█▀▀░▀▄▀░▀▀█
# ║ ░▀▀▀░▀▀▀░▀▀░░▀▀▀░▀░▀ ░▀▀░░▀▀▀░░▀░░▀▀▀
# ║ +-+-+-+-+-+-+-+-+
# ║ |H|e|x|a|H|o|s|t|
# ║ +-+-+-+-+-+-+-+-+
# ║ ║
# ║ © 2026 CodeX Devs — All Rights Reserved ║
# ║ © 2026 HexaHost — All Rights Reserved
# ║ ║
# ║ discord ── https://discord.gg/codexdev
# ║ youtube ── https://youtube.com/@CodeXDevs
# ║ github ── https://github.com/RayExo ║
# ║ discord ── https://discord.gg/hexahost
# ║ github ── https://github.com/theoneandonlymace
# ║ ║
# ╚══════════════════════════════════════════════════════════════════╝
from discord.ext import commands
from core import zyrox, Cog
from core import HexaHost, Cog
import discord
from utils.emoji import ARROWRED, KING, ZBOT, ZHUMAN, ZROCKET
import logging
@@ -26,16 +25,14 @@ logging.basicConfig(
datefmt="%H:%M:%S",
)
client = zyrox()
class Guild(Cog):
def __init__(self, client: zyrox):
def __init__(self, client: HexaHost):
self.client = client
self.bot = client
self.recently_removed_guilds = set()
self._removal_timestamps = {}
@client.event
@commands.Cog.listener(name="on_guild_join")
async def on_guild_add(self, guild):
try:
@@ -102,7 +99,7 @@ Threads : {len(guild.threads)}
await guild.chunk()
embed = discord.Embed(
description=f"{ARROWRED} Prefix For This Server is `>`\n{ARROWRED} Get Started with `>help`\n{ARROWRED} For detailed guides, FAQ & information, visit our **[Support Server](https://discord.gg/codexdev)**",
description=f"{ARROWRED} Prefix For This Server is `>`\n{ARROWRED} Get Started with `>help`\n{ARROWRED} For detailed guides, FAQ & information, visit our **[Support Server](https://discord.gg/hexahost)**",
color=0xFF0000,
)
embed.set_author(
@@ -117,7 +114,7 @@ Threads : {len(guild.threads)}
support = Button(
label="Support",
style=discord.ButtonStyle.link,
url=f"https://discord.gg/codexdev",
url=f"https://discord.gg/hexahost",
)
view = View()
@@ -142,7 +139,6 @@ Threads : {len(guild.threads)}
except Exception as e:
logging.error(f"Error in on_guild_join: {e}")
@client.event
@commands.Cog.listener(name="on_guild_remove")
async def on_guild_remove(self, guild):
import time
@@ -218,6 +214,3 @@ Threads : {len(guild.threads)}
await idk.send(embed=embed)
except Exception as e:
logging.error(f"Error in on_guild_remove: {e}")
# client.add_cog(Guild(client))