From 6e24552be8daa37911302b9065353f66161aa526 Mon Sep 17 00:00:00 2001 From: Yiwen-Chan Date: Sun, 2 May 2021 18:52:40 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E5=A2=9E=E5=8A=A0=20GitHub=20?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E8=BF=94=E5=9B=9E=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + github/repo_searcher.go | 2 +- main.go | 5 ++--- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ad6d8eda..668786ba 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,7 @@ - [x] 卖萌[@xxx] - GitHub仓库搜索 `import _ "github.com/Yiwen-Chan/ZeroBot-Plugin/github"` - [x] >github [xxx] + - [x] >github -p [xxx] - 在线代码运行 `import _ "github.com/Yiwen-Chan/ZeroBot-Plugin/runcode"` - [x] >runcode help - [x] >runcode [on/off] diff --git a/github/repo_searcher.go b/github/repo_searcher.go index 318e4e40..9a350a5e 100644 --- a/github/repo_searcher.go +++ b/github/repo_searcher.go @@ -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)) diff --git a/main.go b/main.go index 188f4063..84919165 100644 --- a/main.go +++ b/main.go @@ -39,7 +39,7 @@ func main() { fmt.Print(` ====================[ZeroBot-Plugin]==================== * OneBot + ZeroBot + Golang -* Version 1.0.2 - 2021-04-23 00:06:06.6531353 +0800 CST +* Version 1.0.3 - 2021-05-02 18:50:40.5489203 +0800 CST * Copyright © 2021 Kanri, DawnNights, All Rights Reserved * Project: https://github.com/Yiwen-Chan/ZeroBot-Plugin ======================================================== @@ -57,11 +57,10 @@ func main() { Handle(func(ctx *zero.Ctx) { ctx.SendChain(message.Text( "* OneBot + ZeroBot + Golang ", "\n", - "* Version 1.0.2 - 2021-04-23 00:06:06.6531353 +0800 CST", "\n", + "* Version 1.0.3 - 2021-05-02 18:50:40.5489203 +0800 CST", "\n", "* Copyright © 2021 Kanri, DawnNights, All Rights Reserved ", "\n", "* Project: https://github.com/Yiwen-Chan/ZeroBot-Plugin", )) }) - select {} }