Skip to content

Commit 043ae4c

Browse files
author
Cyteon
committed
fix groq-api-key cmd example in ai
1 parent 9089719 commit 043ae4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cogs/ai.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ async def on_message(self, message: discord.Message) -> None:
394394

395395
if data["groq_api_key"] == "NONE":
396396
if not data["ai_access"]:
397-
await message.channel.send(f"**This server does not have access to built-in api keys, provide your own from https://console.groq.com/keys using {await self.bot.get_prefix(message)}groq_api_key <api_key>**")
397+
await message.channel.send(f"**This server does not have access to built-in api keys, provide your own from https://console.groq.com/keys using {await self.bot.get_prefix(message)}groq-api-key <api_key>**")
398398
logger.info(f"{message.author} tried to ask AI in {message.guild.name} ({message.guild.id}): AI Disabled!")
399399
return
400400
client = Groq(api_key=get_api_key())
@@ -543,7 +543,7 @@ async def set_ai_channel(self, context: Context):
543543

544544
if data["groq_api_key"] == "NONE":
545545
if not data["ai_access"]:
546-
await context.send(f"**This server does not have access to built-in api keys, provide your own from https://console.groq.com/keys using {await self.bot.get_prefix(context)}groq_api_key <api_key>**")
546+
await context.send(f"**This server does not have access to built-in api keys, provide your own from https://console.groq.com/keys using {await self.bot.get_prefix(context)}groq-api-key <api_key>**")
547547
logger.info(f"{context.author} tried to set AI channel in {context.guild.name} ({context.guild.id}): AI Disabled!")
548548
return
549549

@@ -620,7 +620,7 @@ async def create_ai_thread(self, context: Context, *, prompt = "Hello") -> None:
620620

621621
if data["groq_api_key"] == "NONE":
622622
if not data["ai_access"]:
623-
await context.send(f"**This server does not have access to built-in api keys, provide your own from https://console.groq.com/keys using {await self.bot.get_prefix(context)}groq_api_key <api_key>**")
623+
await context.send(f"**This server does not have access to built-in api keys, provide your own from https://console.groq.com/keys using {await self.bot.get_prefix(context)}groq-api-key <api_key>**")
624624
logger.info(f"{context.author} tried to create AI thread in {context.guild.name} ({context.guild.id}): AI Disabled!")
625625
return
626626

0 commit comments

Comments
 (0)