diff --git a/DOCUMENTATION.md b/DOCUMENTATION.md index f265340..254bfa5 100644 --- a/DOCUMENTATION.md +++ b/DOCUMENTATION.md @@ -35,7 +35,8 @@ Parameters ```python @classmethod async def create(cls, - session_id: str, + secure_1psid: str, + secure_1psidts: str, proxy: dict = None, timeout: int = 20) -> "AsyncChatbot" ``` diff --git a/example.py b/example.py index 681c4e7..ca7f1bb 100644 --- a/example.py +++ b/example.py @@ -1,4 +1,5 @@ from os import environ + from Bard import Chatbot Secure_1PSID = environ.get("BARD__Secure-1PSID") diff --git a/src/Bard.py b/src/Bard.py index 23b4b34..82c1b52 100644 --- a/src/Bard.py +++ b/src/Bard.py @@ -311,7 +311,7 @@ async def ask(self, message: str) -> dict: Secure_1PSIDTS = os.getenv("BARD__Secure-1PSIDTS") if not (Secure_1PSID and Secure_1PSIDTS): print( - "BARD___Secure-1PSID or BARD__Secure-1PSIDTS environment variable not set." + "BARD___Secure-1PSID or BARD__Secure-1PSIDTS environment variable not set.", ) sys.exit(1) chatbot = Chatbot(Secure_1PSID, Secure_1PSIDTS)