Commit 703cf48e authored by nanahira's avatar nanahira

thirdeye and plugin Selection thing

parent 7c990456
import 'source-map-support/register';
import { Context, Schema } from 'koishi';
import { Context, Schema, Selection } from 'koishi';
import {
GetObjectCommand,
ListObjectsCommand,
......@@ -7,7 +7,6 @@ import {
S3ClientConfig,
} from '@aws-sdk/client-s3';
import { SRVProRoomInfo } from './def/srvpro';
import { Selection } from './def/selection';
import { DefineSchema, RegisterSchema } from 'schemastery-gen';
const credentialsSchema = Schema.object({
......
import { MaybeArray } from 'koishi';
const selectors = [
'user',
'guild',
'channel',
'self',
'private',
'platform',
] as const;
type SelectorType = typeof selectors[number];
type SelectorValue = boolean | MaybeArray<string | number>;
type BaseSelection = { [K in SelectorType as `$${K}`]?: SelectorValue };
export interface Selection extends BaseSelection {
$and?: Selection[];
$or?: Selection[];
$not?: Selection;
}
import 'source-map-support/register';
import { Context, Schema, Quester } from 'koishi';
import { Context } from 'koishi';
import {
YGOTournamentPluginConfig,
YGOTournamentPluginConfigLike,
} from './config';
import { classToPlain, plainToClass } from 'class-transformer';
import { MatchWrapper, TournamentWrapper } from './def/challonge';
......@@ -10,7 +9,6 @@ import { S3Client } from '@aws-sdk/client-s3';
import { getSignedUrl } from './presign';
import { SRVProRoomInfo } from './def/srvpro';
import moment from 'moment';
import ProxyAgent from 'proxy-agent';
export interface FromAndToTimeUnix {
fromTime: number;
......
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