koishi-plugin-mc-tools
Version:
我的世界(Minecraft)。可查询 MC 版本、服务器信息、玩家皮肤信息以及四大平台资源;支持管理服务器,功能梭哈
33 lines (32 loc) • 1.13 kB
TypeScript
import { Context, Command, h } from 'koishi';
import { Config } from '../index';
/**
* 搜索CurseForge项目
* @param {Context} ctx - Koishi上下文
* @param {string} keyword - 搜索关键词
* @param {string} api - API密钥
* @param {Object} options - 搜索选项
* @returns {Promise<Object>} 搜索结果和分页信息
*/
export declare function searchCurseForgeProjects(ctx: Context, keyword: string, api: string, options?: {}): Promise<{
results: any;
pagination: any;
}>;
/**
* 获取CurseForge项目详情
* @param {Context} ctx - Koishi上下文
* @param {number} projectId - 项目ID
* @param {string} api - API密钥
* @returns {Promise<Object|null>} 项目详情,包含content和url
*/
export declare function getCurseForgeProject(ctx: Context, projectId: number, api: string): Promise<{
content: (string | h)[];
url: any;
}>;
/**
* 注册CurseForge命令
* @param {Context} ctx - Koishi上下文
* @param {Command} mc - 父命令对象
* @param {Config} config - 配置对象
*/
export declare function registerCurseForge(ctx: Context, mc: Command, config: Config): void;