poe-api
poe-api copied to clipboard
Feature Request: Add is_busy Method
Description:
Add a is_busy(chatbot: str) -> bool method to poe.Client class, returning True if the specified chatbot is in use; False otherwise. This helps prevent conflicts when multiple users access the same chatbot. (busy: It means that the chatbot of the client is currently sending message by someone else. Maybe on poe.com or on another client)
Example Usage:
if client.is_busy(chatbot="chinchilla"):
print("Chatbot 'chinchilla' is busy.")
else:
client.send_message("chinchilla", "Prompt here", timeout=120)
Thank you for considering this enhancement.