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
|
||||
@@ -323,7 +323,7 @@ class AI (commands .Cog ):
|
||||
import os
|
||||
|
||||
|
||||
db_path ="db/ai_data.db"
|
||||
db_path =db_path("ai_data.db")
|
||||
if os .path .exists (db_path ):
|
||||
try :
|
||||
|
||||
@@ -401,7 +401,7 @@ class AI (commands .Cog ):
|
||||
import aiosqlite
|
||||
import os
|
||||
|
||||
db_path ="db/ai_data.db"
|
||||
db_path =db_path("ai_data.db")
|
||||
if not os .path .exists (db_path ):
|
||||
logger .info ("AI database doesn't exist, will be created on first use")
|
||||
return
|
||||
@@ -590,7 +590,7 @@ class AI (commands .Cog ):
|
||||
|
||||
system_context .append ({
|
||||
"role":"system",
|
||||
"content":"You are a Discord bot with many features including moderation, entertainment, music, games, AI capabilities, and utilities. Support server: https://discord.gg/codexdev"
|
||||
"content":"You are a Discord bot with many features including moderation, entertainment, music, games, AI capabilities, and utilities. Support server: https://discord.gg/hexahost"
|
||||
})
|
||||
else :
|
||||
|
||||
@@ -602,7 +602,7 @@ You have a caring, helpful personality and can remember conversations with users
|
||||
|
||||
Be natural, conversational, and genuine in your responses. Don't be overly formal or robotic. Use the conversation history to provide personalized responses that feel like talking to a real friend who happens to be very knowledgeable and helpful.
|
||||
|
||||
Support server: https://discord.gg/codexdev"""
|
||||
Support server: https://discord.gg/hexahost"""
|
||||
})
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user