Releases: dezhishen/onebot-plus
Releases · dezhishen/onebot-plus
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
changelog
feature
新增发送合并消息(群)方法
- SendGroupForwardMessageByRawMsg
r, e := cli.GetLoginInfo()
if e != nil {
println(e)
return
}
cli.SendGroupForwardMessageByRawMsg(123456, r.Data.UserId, r.Data.Nickname, []*model.MessageSegment{
{
Type: "text",
Data: &model.MessageElementText{
Text: "hello,我是合并消息",
},
},
})
- SendGroupForwardMessage
r, e := cli.GetLoginInfo()
if e != nil {
println(e)
return
}
cli.SendGroupForwardMessage(123456, []*model.MessageSegment{
{
Type: "node",
Data: &model.MessageElementNode{
Uin: r.Data.UserId,
Name: r.Data.Nickname,
Content: []*model.MessageSegment{
{
Type: "text",
Data: &model.MessageElementText{
Text: "hello,我是合并消息",
},
},
},
},
},
})
配置
项目运行目录下./configs/bot.yaml
http:
schema: "http"
host: 127.0.0.1
port: 5700
websocket:
host: 127.0.0.1
port: 6700
SUPERUSERS: #超级用户列表
- 123456789
1.0.2
changelog
feature
新增平台管理事件
.onebot list
展示已加载列表.onebot help --id $id
展示指定$id
插件的帮助.onebot env foo bar
设置环境变量foo
为bar
(只能超级用户使用)
插件监听
- 监听
./plugins
下的文件,动态加载插件 Ping()
已有插件,做健康检查,非健康插件不再发起grpc
请求
配置
项目运行目录下./configs/bot.yaml
http:
schema: "http"
host: 127.0.0.1
port: 5700
websocket:
host: 127.0.0.1
port: 6700
SUPERUSERS: #超级用户列表
- 123456789