From 3519e8221cf63b5c18e3003b28e3a4bf5bf75859 Mon Sep 17 00:00:00 2001
From: na2na <49822810+na2na-p@users.noreply.github.com>
Date: Mon, 11 Apr 2022 09:49:47 +0900
Subject: [PATCH] =?UTF-8?q?[reminder]visibility=E3=81=8Cfollowers=E3=81=AE?=
 =?UTF-8?q?=E3=81=A8=E3=81=8D=E3=81=ABtodo=E3=82=92=E5=8F=97=E3=81=91?=
 =?UTF-8?q?=E4=BB=98=E3=81=91=E3=81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=AB?=
 =?UTF-8?q?=E3=81=97=E3=81=9F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/message.ts                | 4 ++++
 src/modules/reminder/index.ts | 7 +++++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/message.ts b/src/message.ts
index 05c7f86..1c81439 100644
--- a/src/message.ts
+++ b/src/message.ts
@@ -34,6 +34,10 @@ export default class Message {
 		return this.messageOrNote.renoteId;
 	}
 
+	public get visibility(): string {
+		return this.messageOrNote.visibility;
+	}
+
 	/**
 	 * メンション部分を除いたテキスト本文
 	 */
diff --git a/src/modules/reminder/index.ts b/src/modules/reminder/index.ts
index 6813863..cc02141 100644
--- a/src/modules/reminder/index.ts
+++ b/src/modules/reminder/index.ts
@@ -59,9 +59,12 @@ export default class extends Module {
 		const separatorIndex = text.indexOf(' ') > -1 ? text.indexOf(' ') : text.indexOf('\n');
 		const thing = text.substr(separatorIndex + 1).trim();
 
-		if (thing === '' && msg.quoteId == null) {
+		if (thing === '' && msg.quoteId == null || msg.visibility === 'followers') {
 			msg.reply(serifs.reminder.invalid);
-			return true;
+			return {
+				reaction: '🆖',
+				immediate: true,
+			};
 		}
 
 		const remind = this.reminds.insertOne({