mirror of
https://github.com/syuilo/ai.git
synced 2024-11-09 23:48:01 +00:00
14 lines
318 B
TypeScript
14 lines
318 B
TypeScript
import 藍 from './ai';
|
|
import MessageLike from './message-like';
|
|
|
|
export default interface IModule {
|
|
name: string;
|
|
install?: (ai: 藍) => void;
|
|
onMention?: (msg: MessageLike) => boolean | Result;
|
|
onReplyThisModule?: (msg: MessageLike, data?: any) => void | Result;
|
|
}
|
|
|
|
export type Result = {
|
|
reaction: string;
|
|
};
|