ai/src/module.ts

11 lines
290 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;
2018-08-13 21:14:47 +00:00
onLocalNote?: (note: any) => void;
2018-08-26 21:59:18 +00:00
onReplyThisModule?: (msg: MessageLike, data?: any) => void;
2018-08-11 01:42:06 +00:00
}