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,16 +1,16 @@
# ╔══════════════════════════════════════════════════════════════════╗
# ║ ║
# ║ ░█▀▀░█▀█░█▀▄░█▀▀░█░█ ░█▀▄░█▀▀░█░█░█▀▀
# ║ ░█░░░█░█░█░█░█▀▀░▄▀▄ ░█░█░█▀▀░▀▄▀░▀▀█
# ║ ░▀▀▀░▀▀▀░▀▀░░▀▀▀░▀░▀ ░▀▀░░▀▀▀░░▀░░▀▀▀
# ║ +-+-+-+-+-+-+-+-+
# ║ |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 utils.db_paths import db_path
import discord
import aiosqlite
@@ -37,7 +37,7 @@ class StickyMessageListener(commands.Cog):
if message.channel.id in self.processing_channels:
return
async with aiosqlite.connect("db/stickymessages.db") as db:
async with aiosqlite.connect(db_path("stickymessages.db")) as db:
cursor = await db.execute("""
SELECT id, message_type, message_content, embed_data, last_message_id,
enabled, delay_seconds, auto_delete_after, ignore_bots,
@@ -84,7 +84,7 @@ class StickyMessageListener(commands.Cog):
)
if new_sticky_msg:
async with aiosqlite.connect("db/stickymessages.db") as db:
async with aiosqlite.connect(db_path("stickymessages.db")) as db:
await db.execute("""
UPDATE sticky_messages
SET last_message_id = ?
@@ -106,7 +106,7 @@ class StickyMessageListener(commands.Cog):
async def get_prefix(self, message):
try:
async with aiosqlite.connect("db/prefix.db") as db:
async with aiosqlite.connect(db_path("prefix.db")) as db:
cursor = await db.execute(
"SELECT prefix FROM prefix WHERE guild_id = ?",
(message.guild.id,)
@@ -117,7 +117,7 @@ class StickyMessageListener(commands.Cog):
return "!"
async def update_counter(self, guild_id, channel_id, new_count):
async with aiosqlite.connect("db/stickymessages.db") as db:
async with aiosqlite.connect(db_path("stickymessages.db")) as db:
await db.execute("""
UPDATE sticky_messages
SET current_count = ?
@@ -179,7 +179,7 @@ class StickyMessageListener(commands.Cog):
@commands.Cog.listener()
async def on_guild_channel_delete(self, channel):
try:
async with aiosqlite.connect("db/stickymessages.db") as db:
async with aiosqlite.connect(db_path("stickymessages.db")) as db:
await db.execute(
"DELETE FROM sticky_messages WHERE channel_id = ?",
(channel.id,)
@@ -191,7 +191,7 @@ class StickyMessageListener(commands.Cog):
@commands.Cog.listener()
async def on_guild_remove(self, guild):
try:
async with aiosqlite.connect("db/stickymessages.db") as db:
async with aiosqlite.connect(db_path("stickymessages.db")) as db:
await db.execute(
"DELETE FROM sticky_messages WHERE guild_id = ?",
(guild.id,)