增加 GitHub 搜索返回图片

This commit is contained in:
Yiwen-Chan
2021-05-02 18:52:40 +08:00
parent 2c8812f45e
commit 6e24552be8
3 changed files with 4 additions and 4 deletions

View File

@@ -37,7 +37,7 @@ func init() { // 插件主体
repo := info.Get("items.0")
// 发送结果
switch ctx.State["regex_matched"].([]string)[1] {
case "-pic ": // 图片模式
case "-p ": // 图片模式
ctx.SendChain(message.Image(
"https://opengraph.githubassets.com/0/"+repo.Get("full_name").Str,
).Add("cache", 0))