File tree Expand file tree Collapse file tree 3 files changed +31
-1
lines changed
Expand file tree Collapse file tree 3 files changed +31
-1
lines changed Original file line number Diff line number Diff line change 55main.exe
66SkadiBot_ *
77build.sh
8+ build_with_gocq.sh
9+ build
10+ install.sh
11+ . /plugins /pixiv
Original file line number Diff line number Diff 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}
3939func 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 : "" ,
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments