|
|
|
@ -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(
|
|
|
|
|