AstrBot icon indicating copy to clipboard operation
AstrBot copied to clipboard

[Feature] 需要完善插件在禁用/重载时的析构逻辑

Open Soulter opened this issue 9 months ago • 0 comments

描述

目前插件在禁用/重载时的销毁逻辑比较混乱,需要完善。

具体来说,需要调用插件可能实现的 terminate()__del__() 方法,前者是异步函数,后者是同步的(为了插件的前向兼容性)。

使用场景

No response

你愿意提交PR吗?

  • [x] 是的, 我愿意提交PR!

Code of Conduct

  • [x] 我已阅读并同意遵守该项目的 行为准则

Soulter avatar Feb 28 '25 04:02 Soulter