UNPKG

koishi-plugin-steam-family-bot

Version:

一个用于新版 Steam 家庭的库存监控 koishi Bot 插件

20 lines (19 loc) 759 B
/// <reference types="node" /> import { Session, TmpFileStorage } from 'steam-family-bot-core'; import { ChannelInfo } from '../interface'; import { Bot } from 'koishi'; export declare class KoishiSession implements Session<ChannelInfo> { bot: Bot; channelInfo: ChannelInfo; uid: string; lang: string; store: TmpFileStorage | undefined; constructor(bot: Bot, channelInfo: ChannelInfo, store?: TmpFileStorage); sendImgUrl(url: string): Promise<void>; sendImgBuffer(content: Buffer, mimeType?: string): Promise<void>; getSessionInfo(): ChannelInfo; send(msg: string): Promise<void>; sendQueued(msg: string): Promise<void>; sendQuote(msg: string): Promise<void>; text(path: string, params?: object): string; }