41 lines
974 B
TypeScript
41 lines
974 B
TypeScript
import { ConfigBase } from '@/common/utils/ConfigBase';
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
|
|
export interface OB11Config {
|
|
http: {
|
|
enable: boolean;
|
|
host: string;
|
|
port: number;
|
|
secret: string;
|
|
enableHeart: boolean;
|
|
enablePost: boolean;
|
|
postUrls: string[];
|
|
};
|
|
ws: {
|
|
enable: boolean;
|
|
host: string;
|
|
port: number;
|
|
};
|
|
reverseWs: {
|
|
enable: boolean;
|
|
urls: string[];
|
|
};
|
|
|
|
debug: boolean;
|
|
heartInterval: number;
|
|
messagePostFormat: 'array' | 'string';
|
|
enableLocalFile2Url: boolean;
|
|
musicSignUrl: string;
|
|
reportSelfMessage: boolean;
|
|
token: string;
|
|
GroupLocalTime: {
|
|
Record: boolean,
|
|
RecordList: Array<string>
|
|
};
|
|
}
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
|
|
export class OB11Config extends ConfigBase<OB11Config> {
|
|
name = 'onebot11';
|
|
}
|