|
|
|
@ -61,6 +61,7 @@ class Commands(discord.Cog, name="Commands"):
|
|
|
|
|
"""
|
|
|
|
|
System commands
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
@add_to_group("system")
|
|
|
|
|
@discord.slash_command(
|
|
|
|
|
name="settings",
|
|
|
|
@ -491,17 +492,19 @@ class Commands(discord.Cog, name="Commands"):
|
|
|
|
|
"""
|
|
|
|
|
Text-based context menu commands from here
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
@discord.message_command(
|
|
|
|
|
name="Ask GPT", guild_ids=ALLOWED_GUILDS, checks=[Check.check_gpt_roles()])
|
|
|
|
|
name="Ask GPT", guild_ids=ALLOWED_GUILDS, checks=[Check.check_gpt_roles()]
|
|
|
|
|
)
|
|
|
|
|
async def ask_gpt_action(self, ctx, message: discord.Message):
|
|
|
|
|
await self.converser_cog.ask_gpt_action(ctx, message)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
Image-based context menu commands from here
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
@discord.message_command(
|
|
|
|
|
name="Draw", guild_ids=ALLOWED_GUILDS, checks=[Check.check_dalle_roles()])
|
|
|
|
|
name="Draw", guild_ids=ALLOWED_GUILDS, checks=[Check.check_dalle_roles()]
|
|
|
|
|
)
|
|
|
|
|
async def draw_action(self, ctx, message: discord.Message):
|
|
|
|
|
await self.image_draw_cog.draw_action(ctx, message)
|
|
|
|
|
|
|
|
|
|