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,21 +1,21 @@
|
||||
# ╔══════════════════════════════════════════════════════════════════╗
|
||||
# ║ ║
|
||||
# ║ ░█▀▀░█▀█░█▀▄░█▀▀░█░█ ░█▀▄░█▀▀░█░█░█▀▀ ║
|
||||
# ║ ░█░░░█░█░█░█░█▀▀░▄▀▄ ░█░█░█▀▀░▀▄▀░▀▀█ ║
|
||||
# ║ ░▀▀▀░▀▀▀░▀▀░░▀▀▀░▀░▀ ░▀▀░░▀▀▀░░▀░░▀▀▀ ║
|
||||
# ║ +-+-+-+-+-+-+-+-+ ║
|
||||
# ║ |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
|
||||
|
||||
from utils import getConfig
|
||||
from utils.config import BotName
|
||||
import discord
|
||||
from utils.emoji import ARROWRED, CODEBASE, HEART3, INDEX, ZYROXLINKS
|
||||
from utils.emoji import ARROWRED, CODEBASE, HEART3, INDEX, HEXAHOST_LINKS
|
||||
from discord.ui import LayoutView, TextDisplay, Separator, Container, ActionRow, Select
|
||||
from discord.ext import commands
|
||||
from utils.Tools import get_ignore_data
|
||||
@@ -44,7 +44,7 @@ class MentionSelectView(LayoutView):
|
||||
),
|
||||
discord.SelectOption(
|
||||
label="Links",
|
||||
emoji=ZYROXLINKS,
|
||||
emoji=HEXAHOST_LINKS,
|
||||
description="Useful bot links",
|
||||
),
|
||||
],
|
||||
@@ -88,7 +88,7 @@ class MentionSelectView(LayoutView):
|
||||
elif selected == "Links":
|
||||
content = (
|
||||
f"**[Invite {BotName}](https://discord.com/oauth2/authorize?client_id=1396114795102470196)**\n"
|
||||
"**[Join Support Server](https://discord.gg/codexdev)**"
|
||||
"**[Join Support Server](https://discord.gg/hexahost)**"
|
||||
)
|
||||
|
||||
new_container = Container(
|
||||
@@ -111,7 +111,7 @@ class Mention(commands.Cog):
|
||||
self.bot_name = BotName
|
||||
|
||||
async def is_blacklisted(self, message):
|
||||
async with aiosqlite.connect("db/block.db") as db:
|
||||
async with aiosqlite.connect(db_path("block.db")) as db:
|
||||
cursor = await db.execute(
|
||||
"SELECT 1 FROM guild_blacklist WHERE guild_id = ?", (message.guild.id,)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user