steam-family-bot-core
Version:
一个用于新版 Steam 家庭的库存监控 Bot 插件
16 lines (15 loc) • 537 B
TypeScript
type ChannelInfo = any;
export interface BotService<T extends ChannelInfo, S extends Session<T>> {
getSessionByChannelInfo(channelInfo: T): S;
}
export interface Session<T extends any = any> {
uid: string;
getSessionInfo(): T;
sendImgBuffer(content: any, mimeType?: string): Promise<void>;
sendImgUrl(url: string): Promise<void>;
text(path: string, params?: object): string;
send(msg: string): Promise<void>;
sendQueued(msg: string): Promise<void>;
sendQuote(msg: string): Promise<void>;
}
export {};