xincbot
Version:
A flexible QQ bot framework based on NapCat and node-napcat-ts
38 lines • 2.71 kB
TypeScript
import { Bot } from './core/bot';
import { ConfigManager } from './core/config';
import { definePlugin } from './core/plugin';
import { Structs } from './core/Structs';
export { Bot, ConfigManager, definePlugin, Structs };
export type { VersionInfo } from './core/plugin';
declare const xincBot: {
Bot: typeof Bot;
ConfigManager: typeof ConfigManager;
definePlugin: typeof definePlugin;
Structs: {
text: (text: string) => import("./core/Structs").Send["text"];
at: (qq: string | "all" | number) => import("./core/Structs").Send["at"];
reply: (id: string | number) => import("./core/Structs").Send["reply"];
face: (id: string | number) => import("./core/Structs").Send["face"];
mface: (emoji_id: string | number, emoji_package_id: string | number, key: string, summary?: string) => import("./core/Structs").Send["mface"];
image: (file: string | Buffer, summary?: string, sub_type?: string | number) => import("./core/Structs").Send["image"];
file: (file: string | Buffer, name?: string) => import("./core/Structs").Send["file"];
video: (file: string | Buffer, name?: string, thumb?: string) => import("./core/Structs").Send["video"];
record: (file: string | Buffer) => import("./core/Structs").Send["record"];
json: (data: string) => import("./core/Structs").Send["json"];
dice: () => import("./core/Structs").Send["dice"];
rps: () => import("./core/Structs").Send["rps"];
markdown: (content: string) => import("./core/Structs").Send["markdown"];
music: (type: "qq" | "163" | "kugou" | "migu" | "kuwo", id: string | number) => import("./core/Structs").Send["music"];
customMusic: (type: "qq" | "163" | "kugou" | "migu" | "kuwo" | "custom", url: string, image: string, audio?: string, title?: string, singer?: string) => import("./core/Structs").Send["music"];
node: (id: string | number, user_id?: number | string, nickname?: string, source?: string, news?: {
text: string;
}[], summary?: string, prompt?: string, time?: string | number) => import("./core/Structs").Send["node"];
customNode: (content: import("./core/Structs").Send[keyof import("./core/Structs").Send][], user_id?: number | string, nickname?: string, source?: string, news?: {
text: string;
}[], summary?: string, prompt?: string, time?: string | number) => import("./core/Structs").Send["node"];
forward: (message_id: number) => import("./core/Structs").Send["forward"];
contact: (type: "qq" | "group", id: number | string) => import("./core/Structs").Send["contact"];
};
};
export default xincBot;
//# sourceMappingURL=index.d.ts.map