interface YamlConfig {
    bot_name: string;
    bot_sysadmin_id: number[];
    command_style: "/" | ".";
    outdate_seconds: number;
    platform: {
        enabled: string;
        settings: {
            qq?: QQPlatform;
            telegram?: TelegramPlatform;
        } & {
            [pl: string]: UnknownPlatform;
        };
    };
}

Properties

bot_name: string

bot的昵称,用于回复中的模式识别

bot_sysadmin_id: number[]

The sysadmin ids of bot

command_style: "/" | "."

TG风格: "/" QQ风格: "."

outdate_seconds: number

由于一场关机导致轮询时爬取古老消息,记作超时不处理的消息最短时间(秒)

platform: {
    enabled: string;
    settings: {
        qq?: QQPlatform;
        telegram?: TelegramPlatform;
    } & {
        [pl: string]: UnknownPlatform;
    };
}

Type declaration

Generated using TypeDoc