UNPKG

koishi-plugin-memes-api

Version:

表情包制作插件调用 API 版

18 lines (17 loc) 488 B
import { Context } from 'koishi'; import { MemeShortcut } from 'meme-generator-rs-api'; import { Config } from '../config'; declare module '../index' { interface MemeInternal { refreshShortcuts?: () => Promise<void>; } } export interface ShortcutInfo extends Partial<MemeShortcut> { name: string; pattern: string; } export interface KeywordInfo { name: string; keyword: string; } export declare function apply(ctx: Context, config: Config): Promise<void>;