Skip to content

Releases: GLGDLY/qg_botsdk

v4.1.5

22 Dec 14:21
Compare
Choose a tag to compare

feat: update interaction model & api

v4.1.4

17 Dec 09:36
Compare
Choose a tag to compare

fix: logger bug on threading version
perf: improve logger performance (hopefully...)

this version also back compatible with sdk version before v4.1.0, by on_command valid_scenes default to CommandValidScenes.GUILD|CommandValidScenes.DM instead of CommandValidScenes.ALL

v4.1.3

14 Dec 15:36
Compare
Choose a tag to compare

fix: bit_count is available after py 3.10

v4.1.2

11 Dec 07:45
Compare
Choose a tag to compare

fix: session timeout reply failed since of msg_seq

v4.1.1

11 Dec 06:35
Compare
Choose a tag to compare

fix: session open failed on qq scene

v4.1.0

10 Dec 08:16
Compare
Choose a tag to compare
  • 新增:支持qq群聊、单聊等事件和API并进行抽象化处理,允许使用reply()等抽象化API,单一函数同时处理群聊和频道等消息事件
  • 新增:指令on_command支持指定作用场景,允许同指令名在不同场景下有不同实现
  • 优化:sdk处理报错的stacktrace中不再包含sdk内部的调用栈

v4.0.1

24 Nov 06:35
Compare
Choose a tag to compare

fix: 修复了上一个版本带来的FormData报错问题

v4.0.0: breaking changes

11 Nov 09:26
Compare
Choose a tag to compare

feat [breaking change]: 重构了消息API的发送方式,取消了send_embed()等API,统一改为send_msg()并传入相应消息类型的结构体

v3.0.1

23 May 14:42
Compare
Choose a tag to compare

feat:加入Model.AT,帮助构建艾特其他用户的消息字符串
feat:补充遗漏的get_online_nums获取在线成员数API

v3.0.0

21 May 15:50
Compare
Choose a tag to compare

session、wait_for与command类的实例可参考:https://github.com/GLGDLY/qg_botsdk/tree/master/example/example_15(session,wait_for).py

feat:加入api.wait_for(),允许在处理一个消息时暂停并等待新的指令
feat:加入session机制,可根据不同scope(user, guild, channel, global)创建session管理数据
feat:大幅优化plugins和command类别的完整度(refresh_plugins, clear_current_plugins, remove_command, remove_preprocessors, get_current_commands, get_current_preprocessors)
feat:优化Plugins模块的api的属性的获取方式
feat:优化部分API的构建
feat:优化官方报错op=9时的处理方式
feat:优化logger的实例管理和多用例输出流管理
feat:优化部分API的参数传入方式
feat:utils.read_yaml()支持更改编码
feat:优化BOT和http的异步运行实现
feat:优化报错的输出,行数的输出级别从debug改为error
feat:新增unit test
fix:修复Plugins.get_commands_names()
fix:修复BOT.close()不合理等待阻塞的问题
fix:修复BOT.load_plugins()的double import问题
fix:修复子频道权限的输入验证问题
fix:on_command is_custom_short_circuit不生效的问题
fix:其他若干bug
dependencies:aiohttp 3.8.1 was discovered to contain an invalid IPv6 URL which can lead to a Denial of Service (DoS) -> update requirement to aiohttp>=3.8.2