This is a Simple Discord chatbot that can answer any question and converse with you on any topic. The bot is powered by Google's new LLM PaLM2 API, which enables it to understand natural language better and respond more accurately.
- Create a discord bot and get the token
- Get Your API Key from Here
- Create a file called
.envand paste your API Key and Discord Bot Token in itAPI_Key={Your_API_Key} DISCORD_BOT_TOKEN={Your_Discord_Bot_Token} - Run the bot
python3 bot.py
!ask {Question}: Ask a question this command will return the answer to the current question but it doesn't remember the context of the chat(old questions).
!chat {start chatting}: Create a new chat with the bot that remembers the context of the chat(old questions).
!reply {Answer}: Continue the chat with the bot.
!helpor!commands: Show the commands
- Add
!chatcommand to create a new chat with the bot and remember the context of the chat - Add
!replycommand to continue the chat with the bot - Add
!helpor!commandscommand to show the commands - Add
!historycommand to show the history of the chat - Add
!imagecommand to send an image and text to the bot and get the text - re-write README.md for gemini instead of palm2



