Add error logging for missing AI Bot and CambAI API key in main function
This commit is contained in:
parent
3166661adc
commit
10c4f60d39
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue