git clone git@github.com:Mousumi44/bard-api.git
cd bard-api
pip install -r requirements.txt
Go to https://bard.google.com/
- F12 for console
- Copy the values
- Session: Go to Application → Cookies →
__Secure-1PSID
. Copy the value of that cookie.
- Session: Go to Application → Cookies →
Open .env
file in bard-api directory and put tokens there
BARD_TOKEN=<your token>
After adding needed tokens in .env start your bot by command:
python bard.py