mirror of
https://github.com/nullnyat/NullcatChan.git
synced 2025-04-29 07:47:20 +09: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;
|
|
};
|