plon / Bard-Discord-bot

Integrate Google Bard into your own discord chatbot
GNU General Public License v2.0
36 stars 14 forks source link
bard chatbot discord discord-api discord-bot discord-chatbot discord-py google google-bard googlebard llm nlp

Setup

Prerequisites to install

Step 1: Create a Discord bot

  1. Go to https://discord.com/developers/applications create an application

  2. Build a Discord bot under the application

  3. Get the token from bot setting

    image

  4. Store the token to config.ini under discord_bot_token

    image
  5. Turn MESSAGE CONTENT INTENT ON

    image

  6. Invite your bot to your server via OAuth2 URL Generator

    image

Authentication

  1. Visit https://bard.google.com/
  2. F12 for console
  3. Session: Application → Cookies → Copy the value of __Secure-1PSID cookie.

Step 3: Run the bot on the desktop

  1. Open a terminal or command prompt

  2. Navigate to the directory where you installed the Bard Discord bot

  3. Run python3 main.py or python main.py to start the bot

Step 4. Invite the bot

image

Commands

Credits

Some of this README.md is from Zero6992