From 10c4f60d398829ddc39b04d41e1468fd271e7498 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" <git@edgarpierre.fr> Date: Sun, 23 Mar 2025 10:02:41 +0100 Subject: [PATCH] Add error logging for missing AI Bot and CambAI API key in main function --- botbotbot/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/botbotbot/__init__.py b/botbotbot/__init__.py index 5f15202..f4264d8 100644 --- a/botbotbot/__init__.py +++ b/botbotbot/__init__.py @@ -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