ai/src/module.ts

14 lines
318 B
TypeScript
Raw Normal View History

2018-08-11 06:26:25 +00:00
import from './ai';
2018-08-11 01:42:06 +00:00
import MessageLike from './message-like';
export default interface IModule {
name: string;
2018-08-11 01:42:06 +00:00
install?: (ai: ) => void;
onMention?: (msg: MessageLike) => boolean | Result;
onReplyThisModule?: (msg: MessageLike, data?: any) => void | Result;
2018-08-11 01:42:06 +00:00
}
export type Result = {
reaction: string;
};