mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00

fix: ignore post history msg before login fix: quit group not sync to groups of data feat: support post url params feat: support port http heart
49 lines
1.1 KiB
TypeScript
49 lines
1.1 KiB
TypeScript
export interface OB11Config {
|
||
httpPort: number
|
||
httpHosts: string[]
|
||
httpSecret?: string
|
||
wsPort: number
|
||
wsHosts: string[]
|
||
enableHttp?: boolean
|
||
enableHttpPost?: boolean
|
||
enableWs?: boolean
|
||
enableWsReverse?: boolean
|
||
messagePostFormat?: 'array' | 'string'
|
||
enableHttpHeart?: boolean
|
||
}
|
||
export interface CheckVersion {
|
||
result: boolean,
|
||
version: string
|
||
}
|
||
export interface Config {
|
||
imageRKey?: string;
|
||
ob11: OB11Config
|
||
token?: string
|
||
heartInterval?: number // ms
|
||
enableLocalFile2Url?: boolean // 开启后,本地文件路径图片会转成http链接, 语音会转成base64
|
||
debug?: boolean
|
||
reportSelfMessage?: boolean
|
||
log?: boolean
|
||
autoDeleteFile?: boolean
|
||
autoDeleteFileSecond?: number
|
||
ffmpeg?: string // ffmpeg路径
|
||
enablePoke?: boolean
|
||
}
|
||
|
||
export interface LLOneBotError {
|
||
httpServerError?: string
|
||
wsServerError?: string
|
||
ffmpegError?: string
|
||
otherError?: string
|
||
}
|
||
|
||
export interface FileCache {
|
||
fileName: string
|
||
filePath: string
|
||
fileSize: string
|
||
fileUuid?: string
|
||
url?: string
|
||
msgId?: string
|
||
downloadFunc?: () => Promise<void>
|
||
}
|