{"id":19592462,"url":"https://github.com/botstudios/bard-discord-bot","last_synced_at":"2025-04-27T14:33:44.094Z","repository":{"id":157514364,"uuid":"633521186","full_name":"BotStudios/bard-discord-bot","owner":"BotStudios","description":"Google Bard on Discord","archived":true,"fork":false,"pushed_at":"2023-04-28T18:09:12.000Z","size":56,"stargazers_count":14,"open_issues_count":0,"forks_count":5,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-26T14:15:11.696Z","etag":null,"topics":["discord-bot","discordjs","google","google-bard"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BotStudios.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-27T17:22:00.000Z","updated_at":"2024-07-27T19:05:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"e9a73d5a-ffc1-4bb5-b541-14cc8404e659","html_url":"https://github.com/BotStudios/bard-discord-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BotStudios%2Fbard-discord-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BotStudios%2Fbard-discord-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BotStudios%2Fbard-discord-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BotStudios%2Fbard-discord-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BotStudios","download_url":"https://codeload.github.com/BotStudios/bard-discord-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251154743,"owners_count":21544552,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discord-bot","discordjs","google","google-bard"],"created_at":"2024-11-11T08:35:36.801Z","updated_at":"2025-04-27T14:33:44.080Z","avatar_url":"https://github.com/BotStudios.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Bard](https://bard.google.com) on [Discord](https://discord.com/) \u003cimg src=\"https://www.gstatic.com/lamda/images/favicon_v1_150160cddff7f294ce30.svg\" width=\"35px\" /\u003e\nA discord.js bot with **Google's Bard** integration \n\n\u003e This project is made possible by [PawanOsman's GoogleBard library](https://github.com/PawanOsman/GoogleBard)\n\n## About\n- Supports reply by `Message Content` or `Interaction Reply`\n- Uses `discord.js@v13` (not LTS)\n- Supports continuous conversation (DM only)\n- Easy to setup (need an access to Bard)\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\" style=\"padding=0;width=50%;\"\u003e\n      \u003cimg src=\"https://user-images.githubusercontent.com/81070048/235217555-daf918db-cfcf-49c2-b1cc-36ff15cadbb8.gif\" width=\"355\"\u003e\n    \u003c/td\u003e\n    \u003ctd align=\"center\" style=\"padding=0;width=50%;\"\u003e\n      \u003cimg src=\"https://user-images.githubusercontent.com/81070048/235220367-3cbac016-70b6-4056-a670-ad77accb8015.gif\" width=\"370\"\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## How to setup\n**Grab cookie**\n1. Visit [bard.google.com](https://bard.google.com) \n2. Press F12 (open developer console)\n3. Go to Application → Cookies → `__Secure-1PSID`. Copy the value of that cookie.\n\n**Setup the bot**\n1. Edit [`config.js`](/config.js), replace `COOKIE` with the cookie you've just copied \u0026 `TOKEN` with your Discord bot's token\n2. Run the following commands to start the bot\n```sh\n$ npm install # install dependencies \n$ npm run register # to register a slash command (you only have to run once)\n$ npm start # start the bot\n```\n\n**Ways to use**\n- Use `/ask prompt:\u003cYOUR_QUESTION\u003e` to ask a question (after registering the slash command)\n- DM the bot with your question (for continuous conversation)\n\n\u003e **Note** \n\u003e For **MessageCommand Support**\n\u003e 1. Enable the **Message Content Intent** in your [Discord Bot Portal](https://discord.com/developers) - place where you obtain your bot token\n\u003e 2. Set the value of `messageCommand` in [config.js](/config.js) to `true`\n\u003e \n\u003e You may now send `!ask \u003cPROMPT\u003e` in a server/guild, this is tantamount to the `/ask` slash command\n\n## Questions/Contributions\nFeel free to create an [issue](https://github.com/BotStudios/bard-discord-bot/issues) for any help/concern. Contributions are always welcome, just create a pull request!\n\n## License\nThis project is available as an open source under the terms of the [MIT License](/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotstudios%2Fbard-discord-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbotstudios%2Fbard-discord-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotstudios%2Fbard-discord-bot/lists"}