From c6164c0d2eaedf3d09a9f6706a5143fd24c2aa6e Mon Sep 17 00:00:00 2001 From: BobMaster <32976627+hibobmaster@users.noreply.github.com> Date: Thu, 13 Apr 2023 23:57:11 +0800 Subject: [PATCH] Created Google Bard (markdown) --- Google-Bard.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Google-Bard.md diff --git a/Google-Bard.md b/Google-Bard.md new file mode 100644 index 0000000..ef7c340 --- /dev/null +++ b/Google-Bard.md @@ -0,0 +1,28 @@ +Get `__Secure-1PSID` cookie from https://bard.google.com/ + +sample `.env` +```env +# Please remove the option that is blank +HOMESERVER="https://matrix.xxxxxx.xxxx" # required +USER_ID="@lullap:xxxxxxxxxxxxx.xxx" # required +PASSWORD="xxxxxxxxxxxxxxx" # Optional +DEVICE_ID="xxxxxxxxxxxxxx" # required +ROOM_ID="!FYCmBSkCRUXXXXXXXXX:matrix.XXX.XXX" # Optional, if not set, bot will work on the room it is in +OPENAI_API_KEY="xxxxxxxxxxxxxxxxx" # Optional, for !chat and !gpt command +ACCESS_TOKEN="xxxxxxxxxxxxxxxxxxxxx" # Optional, use user_id and password is recommended +BARD_TOKEN="xxxxxxxxxxxxxxxxxxxx", # Optional, for !bard command +``` + +sample `config.json` +```json +{ + "homeserver": "https://matrix.qqs.tw", + "user_id": "@lullap:xxxxx.org", + "password": "xxxxxxxxxxxxxxxxxx", + "device_id": "ECYEOKVPLG", + "room_id": "!FYCmBSkCRUNvZDBaDQ:matrix.qqs.tw", + "api_key": "xxxxxxxxxxxxxxxxxxxxxxxx", + "access_token": "xxxxxxx", + "bard_token": "xxxxxxx" +} +``` \ No newline at end of file