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
from utils.emoji import ARROWRED
@@ -34,7 +34,7 @@ class MessagesView(LayoutView):
f"**Daily Messages**: {daily_average}\n"
f"**Today Messages**: {today_count}\n"
f"**Total Messages**: {total}\n\n"
f"**{ARROWRED}Upgrade Your Experience With [{BRAND_NAME} Noprefix](https://discord.gg/codexdev)**"
f"**{ARROWRED}Upgrade Your Experience With [{BRAND_NAME} Noprefix](https://discord.gg/hexahost)**"
),
)
)
@@ -49,7 +49,7 @@ class Messages(commands.Cog):
if message.author.bot or not message.guild:
return
conn = sqlite3.connect("db/messages.db")
conn = sqlite3.connect(db_path("messages.db"))
c = conn.cursor()
c.execute("""
CREATE TABLE IF NOT EXISTS messages (
@@ -86,7 +86,7 @@ class Messages(commands.Cog):
member = member or ctx.author
today = datetime.utcnow().strftime("%Y-%m-%d")
conn = sqlite3.connect("db/messages.db")
conn = sqlite3.connect(db_path("messages.db"))
c = conn.cursor()
c.execute(
"SELECT date, count FROM messages WHERE guild_id = ? AND user_id = ?",