Skip to content

bssayla/PaLM2-discord-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introduction


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.

How to use


  1. Create a discord bot and get the token
  2. Get Your API Key from Here
  3. Create a file called .env and paste your API Key and Discord Bot Token in it
    API_Key={Your_API_Key}
    DISCORD_BOT_TOKEN={Your_Discord_Bot_Token}
  4. Run the bot
     python3 bot.py

Commands


Ask Command

  • !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).

Testing Ask Command

Ask Command

Chat Command

  • !chat {start chatting}: Create a new chat with the bot that remembers the context of the chat(old questions).

Testing Chat Command

Chat Command

Reply Command

  • !reply {Answer}: Continue the chat with the bot.

Testing if the bot remembers the context of the chat

Reply Command

Help Command

  • !help or !commands: Show the commands

Testing Help Command

Help Command

TODO

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages