Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Build With AI for Everyone 핸즈온 데모

Notifications You must be signed in to change notification settings

JayLi52/LOL-Assistant

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

使用 Go 和 Gemini 构建英雄联盟助手 Discord 机器人

安装

go get -u github.com/bwmarrin/discordgo
go get -u github.com/google/generative-ai-go
go get -u github.com/joho/godotenv

环境变量

BOT_TOKEN="Discord 机器人令牌"
GEMINI_API_KEY="Gemini API Key"
GEMINI_INSTRUCTIONS="Gemini 指令说明"
RIOT_GAMES_API_KEY="Riot Games API Key"
cp .env.example .env

请复制 .env.example 文件创建 .env 文件。

幻灯片

链接

Riot Games 开放 API

链接

Discord 机器人

链接

使用方法

运行

go mod tidy
go run .

run

命令

机器人 ${提示词}
  • 可以与 Gemini 进行对话。(参考幻灯片)
分析我最后一场游戏|${昵称}#${标签}
  • 使用 Riot 开放 API 获取最后一场游戏,由 Gemini 进行分析。(参考幻灯片)

About

Build With AI for Everyone 핸즈온 데모

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%