GoogleBard
GoogleBard copied to clipboard
how to use in commonJS
const bardModule = await import('googlebard'); const Bard = bardModule.Bard;
And other code add
let cookies = __Secure-1PSID=<YOUR_COOKIE>
;
let bot = new Bard(cookies, {0
inMemory: false,
savePath: "./conversations.json", // this is being done to save crucial information about the conversation so the bot remembers it
});
let conversationId = "test_id";
let response = await bot.ask("My name is Mehul", conversationId);
console.log(response);