From 1962c2738824ae26f568dd632450c8954e31d817 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 5 Feb 2019 02:13:51 +0900 Subject: [PATCH] ote --- src/modules/core/index.ts | 13 +++++++++++++ src/serifs.ts | 2 ++ 2 files changed, 15 insertions(+) diff --git a/src/modules/core/index.ts b/src/modules/core/index.ts index 0a7bfb1..2a9aea1 100644 --- a/src/modules/core/index.ts +++ b/src/modules/core/index.ts @@ -34,6 +34,7 @@ export default class extends Module { this.humu(msg) || this.batou(msg) || this.itai(msg) || + this.ote(msg) || this.ponkotu(msg) || this.rmrf(msg) || this.shutdown(msg) @@ -292,6 +293,18 @@ export default class extends Module { return true; } + @autobind + private ote(msg: Message): boolean { + if (!msg.or(['お手'])) return false; + + // メッセージのみ + if (!msg.isDm) return true; + + msg.reply(serifs.core.ote); + + return true; + } + @autobind private ponkotu(msg: Message): boolean | HandlerResult { if (!msg.includes(['ぽんこつ'])) return false; diff --git a/src/serifs.ts b/src/serifs.ts index 7655fe0..5b1b3db 100644 --- a/src/serifs.ts +++ b/src/serifs.ts @@ -100,6 +100,8 @@ export default { itai: name => name ? `${name}、大丈夫ですか…? いたいのいたいの飛んでけっ!` : '大丈夫ですか…? いたいのいたいの飛んでけっ!', + ote: 'くぅん... 私わんちゃんなんですか?', + shutdown: '私まだ眠くないですよ...?', },