Commit 3be9f757 authored by nanahira's avatar nanahira

thirdeye and plugin Selection thing

parent 09eac997
import 'source-map-support/register';
import { Context, MaybeArray, Schema } 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 { Context, Selection, Schema } from 'koishi';
export type PluginConfig = Selection;
......
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