Commit d47f5771 authored by nanahira's avatar nanahira

fix compile

parent cfb831ec
This diff is collapsed.
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
"@aws-sdk/types": "3.38.0", "@aws-sdk/types": "3.38.0",
"@aws-sdk/util-format-url": "3.38.0", "@aws-sdk/util-format-url": "3.38.0",
"class-transformer": "^0.4.0", "class-transformer": "^0.4.0",
"koishi-thirdeye": "^10.2.8", "koishi-thirdeye": "^10.3.1",
"moment": "^2.29.1", "moment": "^2.29.1",
"schemastery-gen": "^3.1.10" "schemastery-gen": "^3.1.10"
}, },
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
"ws": "^8.3.0" "ws": "^8.3.0"
}, },
"peerDependencies": { "peerDependencies": {
"koishi": "^4.7.4" "koishi": "^4.7.5"
}, },
"jest": { "jest": {
"moduleFileExtensions": [ "moduleFileExtensions": [
......
// import 'source-map-support/register'; // import 'source-map-support/register';
import { Context, Schema, Selection } from 'koishi'; import { Context, Schema } from 'koishi';
import { Selection } from 'koishi-thirdeye';
import { import {
GetObjectCommand, GetObjectCommand,
ListObjectsCommand, ListObjectsCommand,
......
...@@ -7,7 +7,7 @@ import { S3Client } from '@aws-sdk/client-s3'; ...@@ -7,7 +7,7 @@ import { S3Client } from '@aws-sdk/client-s3';
import { getSignedUrl } from './presign'; import { getSignedUrl } from './presign';
import { SRVProRoomInfo } from './def/srvpro'; import { SRVProRoomInfo } from './def/srvpro';
import moment from 'moment'; import moment from 'moment';
import { DefinePlugin, Inject, StarterPlugin } from 'koishi-thirdeye'; import { DefinePlugin, Inject, selectContext, StarterPlugin } from 'koishi-thirdeye';
import { Cache } from 'koishi'; import { Cache } from 'koishi';
export interface FromAndToTimeUnix { export interface FromAndToTimeUnix {
...@@ -358,8 +358,7 @@ export default class YGOTournamentPlugin extends StarterPlugin( ...@@ -358,8 +358,7 @@ export default class YGOTournamentPlugin extends StarterPlugin(
return '退赛出现了一些问题,请与技术人员联系。'; return '退赛出现了一些问题,请与技术人员联系。';
} }
}); });
const judgeCommand = this.ctx const judgeCommand = selectContext(this.ctx, this.config.judgeSelection)
.select(this.config.judgeSelection)
.command('tournament/judge', '裁判操作') .command('tournament/judge', '裁判操作')
.usage('需要有裁判权限才能执行这些操作。'); .usage('需要有裁判权限才能执行这些操作。');
judgeCommand judgeCommand
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment