UNPKG

koishi

Version:

A QQ bot framework based on CQHTTP

29 lines (22 loc) 654 B
import { AppOptions } from 'koishi-core' import { WatchOptions } from 'chokidar' export * from 'koishi-core' export type PluginConfig = Record<string, any> | (string | [string, any?])[] interface LogLevelConfig { // a little different from koishi-utils // we don't enforce user to provide a base here base?: number [K: string]: LogLevel } type LogLevel = number | LogLevelConfig export interface WatchConfig extends WatchOptions { root?: string fullReload?: boolean } export interface AppConfig extends AppOptions { plugins?: PluginConfig logLevel?: LogLevel logDiff?: boolean logTime?: string | boolean watch?: WatchConfig }