Update configuration and README for improved setup and security; disable default API and emoji sync, and enhance Discord permission checks in API routes.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
36
bot/cogs/zyrox/ai.py
Normal file
36
bot/cogs/zyrox/ai.py
Normal file
@@ -0,0 +1,36 @@
|
||||
# ╔══════════════════════════════════════════════════════════════════╗
|
||||
# ║ ║
|
||||
# ║ ░█▀▀░█▀█░█▀▄░█▀▀░█░█ ░█▀▄░█▀▀░█░█░█▀▀ ║
|
||||
# ║ ░█░░░█░█░█░█░█▀▀░▄▀▄ ░█░█░█▀▀░▀▄▀░▀▀█ ║
|
||||
# ║ ░▀▀▀░▀▀▀░▀▀░░▀▀▀░▀░▀ ░▀▀░░▀▀▀░░▀░░▀▀▀ ║
|
||||
# ║ ║
|
||||
# ║ © 2026 CodeX Devs — All Rights Reserved ║
|
||||
# ║ ║
|
||||
# ║ discord ── https://discord.gg/codexdev ║
|
||||
# ║ youtube ── https://youtube.com/@CodeXDevs ║
|
||||
# ║ github ── https://github.com/RayExo ║
|
||||
# ║ ║
|
||||
# ╚══════════════════════════════════════════════════════════════════╝
|
||||
|
||||
|
||||
|
||||
import discord
|
||||
from utils.emoji import ZAI
|
||||
from discord .ext import commands
|
||||
|
||||
class _ai (commands .Cog ):
|
||||
def __init__ (self ,bot ):
|
||||
self .bot =bot
|
||||
|
||||
"""AI commands"""
|
||||
|
||||
def help_custom (self ):
|
||||
emoji =ZAI
|
||||
label ="AI Commands"
|
||||
description ="Show you the commands of AI"
|
||||
return emoji ,label ,description
|
||||
|
||||
@commands .group ()
|
||||
async def __AI__ (self ,ctx :commands .Context ):
|
||||
"""`ai activate`, `ai deactivate`, `ai analyze`, `ai analyse`, `ai code`, `ai explain`, `ai conversation-clear`, `ai mood-analyzer`, `ai personality`, `ai conversation-stats`, `ai summarize`, `ai ask`, `ai fact`, `ai database-clear`, `ai roleplay-enable`, `ai roleplay-disable`"""
|
||||
pass
|
||||
Reference in New Issue
Block a user