-
run pip3 install -r requirements.txt
-
Rename the file
example.env
to.env
-
Go to https://discord.com/developers/applications create an application
-
Build a Discord bot under the application
-
Get the token from bot setting
-
Store the token to
.env
under theDISCORD_BOT_TOKEN
-
Turn MESSAGE CONTENT INTENT
ON
-
Invite your bot to your server via OAuth2 URL Generator
- Visit https://bard.google.com/
- F12 for console
- Session: Application → Cookies → Copy the value of
__Secure-1PSID
cookie.
-
Open a terminal or command prompt
-
Navigate to the directory where you installed the Bard Discord bot
-
Run
python3 main.py
orpython main.py
to start the bot
- Direct message mode: The bot can be used to chat with users in direct messages. To enable this mode, use the
/toggledm
command - Channel mode: The bot can be used to chat with users in channels. To enable this mode for a channel, use the
/toggleactive
command
/help
: Displays a list of all available commands/toggledm
: Toggles direct message mode/toggleactive
: Toggles channel mode for a channel/chat
: Chat with Bard/reset
: Reset bot's context/togglechannel
: Add the channel you are currently in to the Active Channel List/toggledm
: Toggle if DM chatting should be active/public
: Toggle if bot should respond to all messages in chat/private
: Toggle if bot should only respond to /chat
This program is based on the work of mishalhossin, Zero6992, and acheong08
For more information, please visit the following repositories: