Skip to content

Commit 2b304bb

Browse files
committed
remove pixiv
1 parent c5cbef9 commit 2b304bb

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ main
55
main.exe
66
SkadiBot_*
77
build.sh
8+
build_with_gocq.sh
9+
build
10+
install.sh
11+
./plugins/pixiv

main.go

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import (
44
_ "SkadiBot/plugins/arknights"
55
_ "SkadiBot/plugins/group"
66
_ "SkadiBot/plugins/normal"
7-
_ "SkadiBot/plugins/pixiv"
87
"fmt"
98
log "github.com/sirupsen/logrus"
109
zero "github.com/wdvxdr1123/ZeroBot"
1110
"github.com/wdvxdr1123/ZeroBot/driver"
1211
"gopkg.in/yaml.v3"
1312
"io/ioutil"
13+
"net/http"
1414
"regexp"
1515
"strings"
1616
)
@@ -37,6 +37,17 @@ func (hook *Base64Hook) Levels() []log.Level {
3737
return log.AllLevels
3838
}
3939
func main() {
40+
fmt.Println("交流群群号:258140966")
41+
fmt.Println("仓库地址:https://github.com/yuanyan3060/SkadiBot")
42+
rep, err := http.Get("https://cdn.jsdelivr.net/gh/yuanyan3060/SkadiBot/LICENSE")
43+
if err != nil {
44+
fmt.Println("获取项目状态失败")
45+
return
46+
}
47+
if rep.StatusCode != 200 {
48+
fmt.Println("本项目已失效")
49+
return
50+
}
4051
log.AddHook(&Base64Hook{})
4152
config := Config{
4253
CommandPrefix: "",

plugins/normal/code.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package normal
2+
3+
import (
4+
zero "github.com/wdvxdr1123/ZeroBot"
5+
"github.com/wdvxdr1123/ZeroBot/message"
6+
)
7+
8+
func init() {
9+
zero.OnCommand("源码").
10+
Handle(func(ctx *zero.Ctx) {
11+
ctx.SendChain(message.Text(),
12+
message.At(ctx.Event.UserID),
13+
)
14+
})
15+
}

0 commit comments

Comments
 (0)