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.
Files changed (2) hide show
  1. package/lib/index.cjs +5 -10
  2. 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").action(
1142
- async () => {
1143
- await checkNewVersionArticle(ctx, cfg);
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-minecraft-notifier",
3
3
  "description": "A Minecraft new version notification plugin, also featuring a PCL homepage.",
4
- "version": "1.7.0",
4
+ "version": "1.7.1",
5
5
  "main": "lib/index.cjs",
6
6
  "typings": "lib/index.d.ts",
7
7
  "type": "module",