Update project configuration files, and API routes accordingly. Add SQLite runtime file ignores to .gitignore for better file management.
This commit is contained in:
@@ -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 os
|
||||
import discord
|
||||
@@ -30,7 +30,7 @@ from typing import *
|
||||
from utils import *
|
||||
from utils.config import BotName, serverLink
|
||||
from utils import Paginator, DescriptionEmbedPaginator, FieldPagePaginator, TextPaginator
|
||||
from core import Cog, zyrox, Context
|
||||
from core import Cog, HexaHost, Context
|
||||
from typing import Optional
|
||||
import aiosqlite
|
||||
import asyncio
|
||||
@@ -887,7 +887,7 @@ class Extra(commands.Cog):
|
||||
|
||||
db_latency = "Not Available"
|
||||
try:
|
||||
async with aiosqlite.connect("db/afk.db") as db:
|
||||
async with aiosqlite.connect(db_path("afk.db")) as db:
|
||||
db_start_time = time.perf_counter()
|
||||
await db.execute("SELECT 1")
|
||||
db_end_time = time.perf_counter()
|
||||
|
||||
Reference in New Issue
Block a user