Skip to content

daancsc/Discord-Gemini-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord-Gemini-Bot

使用Gemini API的大安電研Discord AI聊天機器人

如何使用

pip install -U -r requirements.txt

.env.example 放入以下參數:

  • Gemini API Key
  • Discord bot token
  • Wolframalpha app ID
  • Google Custom Search API Key
  • Google Custom Search API Search Engine ID
  • YouTube Data API v3 API Key

然後將 .env.example 更名成 .env

運行 bot.py

功能

  • AI聊天
  • 短期記憶
  • 定期將聊天紀錄統整放入長期記憶
  • 辨識圖片
  • 爬取網址title來判斷內容
  • 透過 Wolframalpha 和 Google 搜尋內容
  • 爬取 nownews 各版新聞
  • 搜尋 Youtube 影片

Branches

  • main - 主分支
  • English-version - 英文版本(by nlcat)

Demo

image image2

FAQ

更多問題請見 此專案

About

使用Gemini API的大安電研Discord AI聊天機器人

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages