mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2026-02-12 18:20:27 +00:00
🚧🎨⚡️ 重大重构中
This commit is contained in:
49
main.go
49
main.go
@@ -2,33 +2,31 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
log "github.com/sirupsen/logrus"
|
||||
easy "github.com/t-tomalak/logrus-easy-formatter"
|
||||
zero "github.com/wdvxdr1123/ZeroBot"
|
||||
"github.com/wdvxdr1123/ZeroBot/driver"
|
||||
"github.com/wdvxdr1123/ZeroBot/message"
|
||||
|
||||
// 注:以下插件均可通过前面加 // 注释,注释后停用并不加载插件
|
||||
// 下列插件可与 wdvxdr1123/ZeroBot v1.1.2 以上配合单独使用
|
||||
// 词库类
|
||||
_ "github.com/Yiwen-Chan/ZeroBot-Plugin/atri" // ATRI词库
|
||||
_ "github.com/Yiwen-Chan/ZeroBot-Plugin/chat" // 基础词库
|
||||
_ "github.com/Yiwen-Chan/ZeroBot-Plugin/huahua" // 椛椛词库
|
||||
_ "github.com/FloatTech/ZeroBot-Plugin/atri" // ATRI词库
|
||||
_ "github.com/FloatTech/ZeroBot-Plugin/chat" // 基础词库
|
||||
|
||||
// 实用类
|
||||
_ "github.com/Yiwen-Chan/ZeroBot-Plugin/github" // 搜索GitHub仓库
|
||||
_ "github.com/Yiwen-Chan/ZeroBot-Plugin/manager" // 群管
|
||||
_ "github.com/Yiwen-Chan/ZeroBot-Plugin/runcode" // 在线运行代码
|
||||
_ "github.com/FloatTech/ZeroBot-Plugin/github" // 搜索GitHub仓库
|
||||
_ "github.com/FloatTech/ZeroBot-Plugin/manager" // 群管
|
||||
_ "github.com/FloatTech/ZeroBot-Plugin/runcode" // 在线运行代码
|
||||
|
||||
// 娱乐类
|
||||
_ "github.com/Yiwen-Chan/ZeroBot-Plugin/music" // 点歌
|
||||
_ "github.com/Yiwen-Chan/ZeroBot-Plugin/picsearcher" // 搜图
|
||||
_ "github.com/Yiwen-Chan/ZeroBot-Plugin/randimg" //简易随机图片
|
||||
_ "github.com/FloatTech/ZeroBot-Plugin/music" // 点歌
|
||||
//_ "github.com/Yiwen-Chan/ZeroBot-Plugin/randimg" //简易随机图片
|
||||
_ "github.com/FloatTech/ZeroBot-Plugin/setutime" // 涩图
|
||||
_ "github.com/FloatTech/ZeroBot-Plugin/shindan" // 测定
|
||||
|
||||
_ "github.com/Yiwen-Chan/ZeroBot-Plugin/setutime" // 涩图
|
||||
_ "github.com/Yiwen-Chan/ZeroBot-Plugin/shindan" // 测定
|
||||
// 以下为内置依赖,勿动
|
||||
zero "github.com/wdvxdr1123/ZeroBot"
|
||||
"github.com/wdvxdr1123/ZeroBot/driver"
|
||||
"github.com/wdvxdr1123/ZeroBot/message"
|
||||
|
||||
log "github.com/sirupsen/logrus"
|
||||
easy "github.com/t-tomalak/logrus-easy-formatter"
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -44,16 +42,19 @@ func main() {
|
||||
====================[ZeroBot-Plugin]====================
|
||||
* OneBot + ZeroBot + Golang
|
||||
* 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
|
||||
* Copyright © 2021 Kanri, DawnNights, Fumiama
|
||||
* Project: https://github.com/FloatTech/ZeroBot-Plugin
|
||||
========================================================
|
||||
`) // 启动打印
|
||||
zero.Run(zero.Config{
|
||||
NickName: []string{"椛椛", "ATRI", "atri", "亚托莉", "アトリ"},
|
||||
CommandPrefix: "/",
|
||||
SuperUsers: os.Args[1:], // 必须修改,否则无权限
|
||||
SuperUsers: []string{"213864964"}, // 必须修改,否则无权限
|
||||
Driver: []zero.Driver{
|
||||
driver.NewWebSocketClient("ws://127.0.0.1:6700/", ""),
|
||||
&driver.WSClient{
|
||||
Url: "ws://127.0.0.1:6700",
|
||||
AccessToken: "",
|
||||
},
|
||||
},
|
||||
})
|
||||
// 帮助
|
||||
@@ -62,8 +63,8 @@ func main() {
|
||||
ctx.SendChain(message.Text(
|
||||
"* OneBot + ZeroBot + Golang ", "\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",
|
||||
"* Copyright © 2021 Kanri, DawnNights, Fumiama ", "\n",
|
||||
"* Project: https://github.com/FloatTech/ZeroBot-Plugin",
|
||||
))
|
||||
})
|
||||
select {}
|
||||
|
||||
Reference in New Issue
Block a user