diff --git a/src/modules/core/index.ts b/src/modules/core/index.ts index 665d799..be25ad0 100644 --- a/src/modules/core/index.ts +++ b/src/modules/core/index.ts @@ -37,7 +37,8 @@ export default class CoreModule implements IModule { this.humu(msg) || this.batou(msg) || this.ponkotu(msg) || - this.rmrf(msg) + this.rmrf(msg) || + this.shutdown(msg) ); } @@ -328,6 +329,16 @@ export default class CoreModule implements IModule { }; } + private shutdown = (msg: MessageLike): boolean | Result => { + if (!msg.includes(['shutdown'])) return false; + + msg.reply(serifs.core.shutdown); + + return { + reaction: 'confused' + }; + } + public onReplyThisModule = (msg: MessageLike, data: any) => { if (msg.text == null) return; diff --git a/src/serifs.ts b/src/serifs.ts index f370dfc..efe5c9b 100644 --- a/src/serifs.ts +++ b/src/serifs.ts @@ -98,7 +98,9 @@ export default { normal: '(じとー…)', hate: '…頭大丈夫ですか?' - } + }, + + shutdown: '私まだ眠くないですよ...?', }, keyword: {