From ec4f35185d835ba22b1c8fadd624f4e7e4fea303 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 6 Jul 2019 22:52:19 +0900 Subject: [PATCH] More home --- src/modules/core/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/core/index.ts b/src/modules/core/index.ts index b3d48a1..5aa6d3d 100644 --- a/src/modules/core/index.ts +++ b/src/modules/core/index.ts @@ -156,13 +156,13 @@ export default class extends Module { @autobind private erait(msg: Message): boolean { - const match = msg.extractedText.match(/(.+?)たから(褒|ほ)めて/); + const match = msg.extractedText.match(/(.+?)た(から|ので)(褒|ほ)めて/); if (match) { msg.reply(getSerif(serifs.core.erait.specify(match[1], msg.friend.name))); return true; } - const match2 = msg.extractedText.match(/(.+?)るから(褒|ほ)めて/); + const match2 = msg.extractedText.match(/(.+?)る(から|ので)(褒|ほ)めて/); if (match2) { msg.reply(getSerif(serifs.core.erait.specify(match2[1], msg.friend.name))); return true;