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
.env
and 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.
!help
or!commands
: Show the commands
- Add
!chat
command to create a new chat with the bot and remember the context of the chat - Add
!reply
command to continue the chat with the bot - Add
!help
or!commands
command to show the commands - Add
!history
command to show the history of the chat - Add
!image
command to send an image and text to the bot and get the text - re-write README.md for gemini instead of palm2