Closed alokid closed 1 year ago
I assume your key starts something like “__Secure-1PSID=”
If this is so, you can remove this for bard-ai
.
If it starts with a non-1 PSID, put it as a JSON in the same place you put a cookie, like this:
{
“__Secure-2PSID”: “YOUR_COOKIE”
}
even though yesterday's version of the bard-ai module was working, the latest update, made it encounter an error
Again, what format is the string you are putting into the object?
import Bard from "bard-ai";
let myBard = new Bard(mycookie);
console.log(await myBard.ask("Hello, world!"));
What are you putting into new Bard()
? Does it start with “__Secure-PSID”?
without text "__Secure-1PSID", but I only entered cookies
Hmm… very strange. I will have to look into it tomorrow. Have you tried using the PSIDTS? (In the FAQ)
I have tried many times, changing google accounts. the results are not satisfactory.
Same here, my __Secure-1PSID or PSIDTS cookie doesn't seem to work with 2.0.0, when I go back to 1.5.4 it works just fine on my end.
So sorry, should be all fixed now...
By the way @xLSX285 your PSIDTS should be used alongside your PSID... not alone, like this:
let bot = new Bard({
"__Secure-1PSID": PSID,
"__Secure-1PSIDTS": PSIDTS
})
Hope this helps!
let bot = new Bard({ "Secure-1PSID": bardKey, "Secure-1PSIDTS": bardKey2 })
console.log(await bot.ask(m.text)); m.reply(await bot.ask(m.text))
Latest Version
let bot = new Bard({ "Secure-1PSID": bardKey, "Secure-1PSIDTS": bardKey2 })
console.log(await bot.ask(m.text)); m.reply(await bot.ask(m.text))
Latest Version
Are you sure you're updated to v2? and how are you importing bard?
By the way @xLSX285 your PSIDTS should be used alongside your PSID... not alone, like this:
let bot = new Bard({ "__Secure-1PSID": PSID, "__Secure-1PSIDTS": PSIDTS })
Hope this helps!
Oh right.. can confirm it works now for me on 2.0.1! Kind of annoying though because my PSIDTS expires already like after 10 minutes or so.
let bot = new Bard({ "Secure-1PSID": bardKey, "Secure-1PSIDTS": bardKey2 }) console.log(await bot.ask(m.text)); m.reply(await bot.ask(m.text)) Latest Version
Are you sure you're updated to v2? and how are you importing bard?
import Bard from "bard-ai";
let myBard = new Bard(COOKIE __Secure-1PSID);
console.log(await myBard.ask("Hello, world!"));
Command Error
Bard is not a constructor
Try logging out, logging in again, and getting a new cookie. That works.
Seems like this is all fixed, to some degree. Closing for now.
Prerequisites
bard-ai
Bug Description
even though I use the same key, but using the bard-ai module gets this error, but if using the googlebard module, it works.
Reproduction Steps
let bot = new Bard(bardKey);
console.log(await bot.ask("Hello world!")); console.log(await bot.ask("What is 1+1?")); console.log(await bot.ask("What about 2+2?")); console.log(await bot.ask("Goodbye."));
Other information
No response
Occurance Rate
I can reproduce this bug 100% of the time.