Add error logging for missing AI Bot and CambAI API key in main function

This commit is contained in:
Edgar P. Burkhart 2025-03-23 10:02:41 +01:00
parent 3166661adc
commit 10c4f60d39
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -40,10 +40,14 @@ def main() -> None:
model="mistral-large-latest",
system_message=system_prompt,
)
else:
logger.warning("No AI Bot.")
cambai: CambAI | None = None
if isinstance(key := config.get("cambai_api_key"), str):
cambai = CambAI(key)
else:
logger.warning("No CambAI.")
intents = discord.Intents.default()
intents.members = True