UNPKG

koishi-plugin-mc-tools

Version:

我的世界(Minecraft)。可查询 MC 版本、服务器信息、玩家皮肤信息以及四大平台资源;支持管理服务器,功能梭哈

28 lines (27 loc) 780 B
import { Context, Command } from 'koishi'; import { Config } from '../index'; /** * 定义机器人发送通知的目标。 */ export interface StatusTarget { platform: string; channelId: string; } /** * 清理并停止后台的状态检查定时器。 */ export declare function cleanupStatusCheck(): void; /** * 向 Koishi 注册 .status 子命令。 * @param mc - 父命令 'mc' 的实例。 */ export declare function registerStatus(mc: Command): void; /** * 设置并启动后台的定时状态检查任务。 * @param ctx - Koishi 的上下文对象。 * @param config - 插件的配置对象。 */ export declare function regStatusCheck(ctx: Context, config: Config & { statusNoticeTargets?: StatusTarget[]; statusUpdInterval?: number; }): void;