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,18 +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 __future__ import annotations
|
||||
from utils.db_paths import db_path
|
||||
from discord.ext import commands
|
||||
from discord import *
|
||||
from PIL import Image, ImageDraw, ImageFont, ImageFilter
|
||||
@@ -26,7 +26,7 @@ from utils import Paginator, DescriptionEmbedPaginator, FieldPagePaginator, Text
|
||||
from utils.Tools import *
|
||||
from utils.config import OWNER_IDS, BOT_OWNER_IDS
|
||||
from utils.emoji import BOOSTS, DISCORD_BADGE_EMOJIS, LOADINGRED, NITRO_BOOST, TICK, ZWARNING
|
||||
from core import Cog, zyrox, Context
|
||||
from core import Cog, HexaHost, Context
|
||||
import sqlite3
|
||||
import os
|
||||
import requests
|
||||
@@ -136,7 +136,7 @@ class Owner(commands.Cog):
|
||||
self.client = client
|
||||
self.staff = set()
|
||||
self.np_cache = []
|
||||
self.db_path = 'db/np.db'
|
||||
self.db_path = db_path('np.db')
|
||||
self.stop_tour = False
|
||||
self.bot_owner_ids = BOT_OWNER_IDS
|
||||
self.client.loop.create_task(self.setup_database())
|
||||
|
||||
Reference in New Issue
Block a user