Skip to content

bGlzdGRlcg/MyGO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mastodon yukibot - GO

Warning

It's MyGO🥒🥒🥒🥒🥒

我从来没觉得写代码开心过

开始之前

MS_HOST/settings/applications (MS_HOST 为你的Mastodon地址) 创建一个应用

之后你可以得到

应用 ID "xxx"

应用密钥 "xxx"

你的访问令牌 "xxx"

前往 https://aistudio.google.com/app/apikey 获取你的GEMINI_API_KEY

配置

在项目目录新建.env文件

MS_HOST="https://xxx.xxx"
MS_CID="xxx"
MS_SECRET="xxx"
MS_TOKEN="xxx"
GEMINI_API_KEY="xxx"
  • MS_HOST 为你的Mastodon地址
  • MS_CID 为你获取到的Mastodon应用 ID
  • MS_SECRET 为你获取到的Mastodon应用密钥
  • MS_TOKEN 为你获取到的Mastodon你的访问令牌
  • GEMINI_API_KEY 为你在aistudio获取到的 apikey

运行

终端下输入

go mod tidy && go build
./MyGO

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages