diff --git a/cogs/gpt_3_commands_and_converser.py b/cogs/gpt_3_commands_and_converser.py index dd64c59..223f4a1 100644 --- a/cogs/gpt_3_commands_and_converser.py +++ b/cogs/gpt_3_commands_and_converser.py @@ -1254,6 +1254,18 @@ class GPT3ComCon(discord.Cog, name="GPT3ComCon"): from_g_command=True, custom_api_key=user_api_key, ) + @discord.slash_command( + name="private-test", + description="Private thread for testing. Only visible to you and server admins.", + guild_ids=ALLOWED_GUILDS, + ) + @discord.guild_only() + async def private_test(self, ctx: discord.ApplicationContext): + await ctx.defer(ephemeral=True) + await ctx.channel.create_thread( + name=ctx.user.name + "'s private test conversation", + auto_archive_duration=60, + ) @add_to_group("gpt") @discord.slash_command( diff --git a/gpt3discord.py b/gpt3discord.py index 8a94aa6..8085302 100644 --- a/gpt3discord.py +++ b/gpt3discord.py @@ -24,7 +24,7 @@ from models.openai_model import Model from models.usage_service_model import UsageService from models.env_service_model import EnvService -__version__ = "5.3.1" +__version__ = "5.3.2" """ The pinecone service is used to store and retrieve conversation embeddings.