koishi-plugin-minecraft-notifier 1.7.0 → 1.7.1
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/lib/index.cjs +5 -10
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
|
@@ -1138,16 +1138,11 @@ function apply(ctx, cfg) {
|
|
|
1138
1138
|
const articleRecord = (await ctx.database.get("minecraft_article_version", 1))[0];
|
|
1139
1139
|
koaCtx.response.body = articleRecord.latestVersion;
|
|
1140
1140
|
});
|
|
1141
|
-
ctx.command("mc.trigger", "\u624B\u52A8\u89E6\u53D1 AI \u66F4\u65B0\u65E5\u5FD7\u603B\u7ED3\u751F\u6210"
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
);
|
|
1146
|
-
ctx.command("mc.trigger.gitcode", "\u624B\u52A8\u89E6\u53D1 AI \u66F4\u65B0\u65E5\u5FD7\u603B\u7ED3\u751F\u6210").action(
|
|
1147
|
-
async () => {
|
|
1148
|
-
return await getSustemPrompt(ctx, cfg, "jab attack");
|
|
1149
|
-
}
|
|
1150
|
-
);
|
|
1141
|
+
ctx.command("mc.trigger", "\u624B\u52A8\u89E6\u53D1 AI \u66F4\u65B0\u65E5\u5FD7\u603B\u7ED3\u751F\u6210", {
|
|
1142
|
+
authority: 4
|
|
1143
|
+
}).action(async () => {
|
|
1144
|
+
await checkNewVersionArticle(ctx, cfg);
|
|
1145
|
+
});
|
|
1151
1146
|
ctx.setInterval(async () => {
|
|
1152
1147
|
try {
|
|
1153
1148
|
await loadData();
|
package/package.json
CHANGED