ai/src/module.ts
2018-10-10 00:47:03 +09:00

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;
};