Skip to content

Releases: dezhishen/onebot-plus

1.0.7

04 Mar 16:10
Compare
Choose a tag to compare

Full Changelog: 1.0.6...1.0.7

1.0.6

18 Jul 15:42
Compare
Choose a tag to compare

changelog

fix

升级sdk版本

配置

项目运行目录下./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.5

18 Jul 14:41
Compare
Choose a tag to compare

changelog

mod

修改grpc最大值设置

配置

项目运行目录下./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.4

18 Jul 13:29
Compare
Choose a tag to compare

changelog

mod

修改发送合并消息(群)方法

增加返回值 data

配置

项目运行目录下./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.3

16 Jul 14:47
Compare
Choose a tag to compare

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

10 Apr 12:29
b14758b
Compare
Choose a tag to compare

changelog

feature

新增平台管理事件

  • .onebot list 展示已加载列表
  • .onebot help --id $id 展示指定$id插件的帮助
  • .onebot env foo bar 设置环境变量 foobar(只能超级用户使用)

插件监听

  • 监听./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

1.0.1

09 Apr 09:34
Compare
Choose a tag to compare

changelog

bugs

子插件退出后而引起的空指针异常

配置

项目运行目录下./configs/bot.yaml

http:
  schema: "http"
  host: 127.0.0.1
  port: 5700
websocket:
  host: 127.0.0.1
  port: 6700

1.0.0

31 Dec 06:30
Compare
Choose a tag to compare

配置

项目运行目录下./configs/bot.yaml

http:
  schema: "http"
  host: 127.0.0.1
  port: 5700
websocket:
  host: 127.0.0.1
  port: 6700