Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fusefairy/discordbot-bardgpt
Using Google Bard Chat AI on discord bot.
https://github.com/fusefairy/discordbot-bardgpt
bard bard-ai chatgpt chatgpt-bot discord discord-bot google-bard python
Last synced: 1 day ago
JSON representation
Using Google Bard Chat AI on discord bot.
- Host: GitHub
- URL: https://github.com/fusefairy/discordbot-bardgpt
- Owner: FuseFairy
- License: gpl-2.0
- Created: 2023-06-01T13:40:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-19T10:10:31.000Z (over 1 year ago)
- Last Synced: 2023-10-19T11:27:16.667Z (over 1 year ago)
- Topics: bard, bard-ai, chatgpt, chatgpt-bot, discord, discord-bot, google-bard, python
- Language: Python
- Homepage:
- Size: 45.9 KB
- Stars: 21
- Watchers: 1
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DiscordBot-BardGPT
> ## Using Google Bard Chat AI on discord bot.## Update
> ### 2023/7/19 : Message can contain image.
> ### 2023/7/15 : Use another Bard api so the chatbot can work again.
> ### 2023/6/5 : Use SQLite storage of individual cookies so it doesn't reset when the bot restarts, it can also be exported for later use.## Features
### Slash command
> ### will create a personal conversation for each user.
* cookies setting(use personal Google Bard Cookies): `/chatbot_setting [choice]`
![setting](https://i.imgur.com/MOGJN5e.png)
* Bard: `/bard [message] [image]`
>**Warning** : Only up to 10 images will be displayed.![Bard1](https://i.imgur.com/LEmdIMI.png)
![Bard2](https://i.imgur.com/q9hy2RP.png)
### Mention bot
> ### same feature as the slash command, but this will reply all user messages.
* Same as use `/bard`,
![mention1](https://i.imgur.com/1PiYBi8.png)
![mention2](https://i.imgur.com/Tf0dCeu.png)
### Prefix command (available only to bot owner)
> ### bot owner setting.
* `!bardunload [file_name_in_cogs_folder]`: Disable command from the specified file.
* `!bardload [file_name_in_cogs_folder]`: Enable the command from the specified file.
![load & unload](https://i.imgur.com/lqqcxkd.png)
* `!bardclean`: Empty discord_bot.log file.
* `!bardgetLog`: Get discord_bot.log file. Real-time tracking of the bot's operating status.
![bardgetLog](https://i.imgur.com/ZQok7qS.png)
* `!bardgetdb`: Export Bard_id.db file
![getdb](https://i.imgur.com/gq9E7lV.png)
## Install
```
pip install -r requirements.txt
```## Usage
1. Get Google Bard authentication.
* Go to [https://bard.google.com/](https://bard.google.com/)
* F12 for console
* ___SECURE_1PSID: Go to Application → Cookies → `__Secure-1PSID`. Copy the value of that cookie.
2. Rename the file`.env.dev`to`.env`, then open it and edit it. If you don't want a limit channel to mention a bot, you don't need to set up a MENTION_CHANNEL_ID, just leave it blank.
```
DISCORD_BOT_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
MENTION_CHANNEL_ID=123456789
___SECURE_1PSID=
```3. Start run your bot, hosted locally or on a server.
-> Recommended Free Servers: [fly.io](https://fly.io/)
## Credits
* Bard - [https://github.com/dsdanielpark/Bard-API/tree/main](https://github.com/dsdanielpark/Bard-API/tree/main)## Contributors
This project exists thanks to all the people who contribute.