From 2eb1624da4b657488eceea914ffd8179816154eb Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 28 Aug 2018 13:16:05 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=84=E3=81=8F=E3=81=A4=E3=81=8B=E3=81=AE?= =?UTF-8?q?=E6=A9=9F=E8=83=BD=E3=81=AF=E3=83=A1=E3=83=83=E3=82=BB=E3=83=BC?= =?UTF-8?q?=E3=82=B8=E3=81=A7=E3=81=AE=E3=81=BF=E5=8F=8D=E5=BF=9C=E3=81=99?= =?UTF-8?q?=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 5cd7d9d..403619d 100644 --- a/src/modules/core/index.ts +++ b/src/modules/core/index.ts @@ -68,6 +68,9 @@ export default class CoreModule implements IModule { if (!msg.text.includes('って呼んで')) return false; if (msg.text.startsWith('って呼んで')) return false; + // メッセージのみ + if (!msg.isMessage) return true; + if (msg.friend.love < 5) { msg.reply(serifs.core.requireMoreLove); return true; @@ -148,6 +151,9 @@ export default class CoreModule implements IModule { if (!msg.text) return false; if (!msg.text.includes('なでなで')) return false; + // メッセージのみ + if (!msg.isMessage) return true; + //#region 1日に1回だけ親愛度を上げる const today = getDate();