From d66ca4e32659a9aa304570630c1fe7ba379e7707 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 2 Sep 2018 19:24:10 +0900 Subject: [PATCH] Message only --- src/modules/core/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/core/index.ts b/src/modules/core/index.ts index 8041e20..719780b 100644 --- a/src/modules/core/index.ts +++ b/src/modules/core/index.ts @@ -212,6 +212,9 @@ export default class CoreModule implements IModule { private humu = (msg: MessageLike): boolean => { if (!includes(msg.text, ['踏んで'])) return false; + // メッセージのみ + if (!msg.isMessage) return true; + msg.reply( msg.friend.love <= -3 ? serifs.core.humu.hate : serifs.core.humu.normal); @@ -222,6 +225,9 @@ export default class CoreModule implements IModule { private batou = (msg: MessageLike): boolean => { if (!includes(msg.text, ['罵倒して', '罵って'])) return false; + // メッセージのみ + if (!msg.isMessage) return true; + msg.reply( msg.friend.love >= 5 ? serifs.core.batou.love : msg.friend.love <= -5 ? serifs.core.batou.hate :