A discord.js bot with Google's Bard integrated
This project is made possible by PawanOsman's GoogleBard library
- Supports reply by
Message Content
orInteraction Reply
- Uses
discord.js@v13
(not LTS) - Supports continuous conversation (DM only)
- Easy to setup (need an access to Bard)
Grab cookie
- Visit bard.google.com
- Press F12 (open developer console)
- Go to Application → Cookies →
__Secure-1PSID
. Copy the value of that cookie.
Setup the bot
- Edit
config.js
, replaceCOOKIE
with the cookie you've just copied &TOKEN
with your Discord bot's token - Run the following commands to start the bot
$ npm install
$ npm start
Ways to use
- Use
!ask <YOUR_QUESTION>
to ask a question (in a server/guild) - DM the bot with your question (for continuous conversation)