koishi-plugin-ll-schedule 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -70,8 +70,9 @@ const Config = Schema.object({
|
|
|
70
70
|
|
|
71
71
|
exports.Config = Config
|
|
72
72
|
|
|
73
|
-
//
|
|
74
|
-
|
|
73
|
+
// 需要数据库:持久化学习到的群(重启不丢)
|
|
74
|
+
// 必须声明 required:确保插件在数据库就绪后才启动,模型表能正常注册建表
|
|
75
|
+
exports.inject = { required: ['database'] }
|
|
75
76
|
|
|
76
77
|
function apply(ctx, config) {
|
|
77
78
|
const logger = ctx.logger('ll-schedule')
|