From 71704c024f3532b82194cb70a67b3a8217c8c752 Mon Sep 17 00:00:00 2001 From: Hamza Date: Thu, 26 Sep 2024 23:38:18 +0200 Subject: [PATCH 1/2] Update xiaojie.py --- commands/xiaojie.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/xiaojie.py b/commands/xiaojie.py index 44e6fb2..3a98ce2 100644 --- a/commands/xiaojie.py +++ b/commands/xiaojie.py @@ -24,7 +24,7 @@ async def rerun_button(self, interaction: discord.Interaction, button: discord.u # Define the two descriptions description_options = [ - ("115 **new** images of Xiaojie have been added! In total, Hamzie API stores 295 images of the cute Xiaojie cat. Have you seen every one?", "Fun Fact"), + ("115 **new** images of Xiaojie have been added! In total, Hamzie API stores 295 images of the cute Xiaojie cat. Have you seen them all?", "Fun Fact"), ("Currently Ava uses TheCatAPI which is not free to use, that's why Hamzie API (the source of most images Ava uses) is making their own cat's section, free to use for everyone. We ask you to send in your best cat pictures, for it to be used in Hamzie API, which will eventually replace TheCatAPI in this command.", "Important Announcement") ] From b93e6766fc7e8b675b45218e52a822b22e9722bc Mon Sep 17 00:00:00 2001 From: Hamza Date: Sat, 19 Oct 2024 20:17:32 +0200 Subject: [PATCH 2/2] remove ChatAI from repo --- .gitignore | 5 +-- SECURITY.md | 4 +-- disabled commands/ChatAI.py | 50 --------------------------- ex_config (change me to config.py).py | 2 +- extraConfigs/ChatAIConfig.py | 0 readme.md | 3 ++ 6 files changed, 9 insertions(+), 55 deletions(-) delete mode 100644 disabled commands/ChatAI.py delete mode 100644 extraConfigs/ChatAIConfig.py diff --git a/.gitignore b/.gitignore index ff8d402..977be8c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,10 +2,11 @@ # Closed Source Code: # AI funcionality is currently closed source, this is part of another project called AvaAI. -AvaAI -AvaAI.py commands/AvaAI commands/AvaAI.py +commands/AvaGroupAI +commands/AvaGroupAI.py +ai database # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/SECURITY.md b/SECURITY.md index aeeffd9..dfbdd78 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -6,8 +6,8 @@ The following versions will receive security updates as needed: | Version | Supported | | ------------ | ------------------ | -| 0.7.0-beta | :white_check_mark: | -| < 0.7.0-beta | :x: | +| 0.8.0-beta | :white_check_mark: | +| < 0.8.0-beta | :x: | ## Reporting a Vulnerability diff --git a/disabled commands/ChatAI.py b/disabled commands/ChatAI.py deleted file mode 100644 index 9d9b0ba..0000000 --- a/disabled commands/ChatAI.py +++ /dev/null @@ -1,50 +0,0 @@ - -# IMPORTANT NOTE: -# AvaAI is closed source for now. ChatAI will NOT work for you unless you make your function for this command to process! If you do not know what that means then don't bother getting this to work, I might add an example script to use OpenAI in the future. -# This script calls for ChatReponse() to respond with a message. - - -# This is in progress of begin rewritten - -import discord -from discord.ext import commands -from discord import app_commands -import config -from extraConfigs.ChatAIConfig import * - -class chat(commands.Cog): - def __init__(self, client: commands.Bot): - self.client = client - - @app_commands.command(name="chat", description="Chat with me!") - @app_commands.rename(message='message') - @app_commands.describe(message='Type the message you wish to send to Ava.') - async def chat(self, interaction: discord.Interaction, message: str): - try: - embed = discord.Embed( - color=discord.Colour.blurple(), - title="AvaAI 💬", - description="Ava is thinking... <:AVA_CuteThink:1211038099086512199>") - embed.set_footer(text=f"Ava | version: {config.AVA_VERSION} | Keep in mind that Ava can make mistakes.", icon_url=config.FOOTER_ICON) - await interaction.response.send_message(embed=embed) - response = await ChatReponse(message) - try: - embed = discord.Embed( - color=discord.Colour.blurple(), - title="AvaAI 💬", - description=response) - embed.set_footer(text=f"Ava | version: {config.AVA_VERSION} | Keep in mind that Ava can make mistakes.", icon_url=config.FOOTER_ICON) - await interaction.edit_original_response(embed=embed) - except: - embed = discord.Embed( - color=discord.Colour.blurple(), - title="AvaAI <:Ava_Error:1211046596373123174>", - description="Ava's response overwhelmed Discord with its size. Could you please ask her to provide a shorter response?") - embed.set_footer(text=f"Ava | version: {config.AVA_VERSION} | Keep in mind that Ava can make mistakes.", icon_url=config.FOOTER_ICON) - await interaction.edit_original_response(embed=embed) - except Exception as e: - print(e) - await interaction.followup.send(content='Error occured.') - -async def setup(client:commands.Bot) -> None: - await client.add_cog(chat(client)) diff --git a/ex_config (change me to config.py).py b/ex_config (change me to config.py).py index 9f2d490..aa57f1f 100644 --- a/ex_config (change me to config.py).py +++ b/ex_config (change me to config.py).py @@ -1,4 +1,4 @@ -AVA_VERSION = 'v0.7.0-beta' # Do not change this, it will help with troubleshooting later +AVA_VERSION = 'v0.8.0-beta' # Do not change this, it will help with troubleshooting later CONFIG_VERSION = 3 # Do not change this, it will help with troubleshooting later # Required Bot Configuration diff --git a/extraConfigs/ChatAIConfig.py b/extraConfigs/ChatAIConfig.py deleted file mode 100644 index e69de29..0000000 diff --git a/readme.md b/readme.md index 1bac234..7da1c2e 100644 --- a/readme.md +++ b/readme.md @@ -36,6 +36,9 @@ Ava is a versatile, open-source Discord bot designed to effortlessly meet all yo ## Contributing We welcome contributions to enhance Ava's functionality. Feel free to fork the repository, make your changes, and submit a pull request. +## AI Commands +Are you looking for the AI commands? Unfortunately, we are unable to provide the open-source code for this feature due to issues with the source of the code we are using. However, you are welcome to contribute by creating scripts that work with other providers like OpenAI. + ## Credits - **Hamzie API** for delivering most images Ava uses. (Free to use for everyone)