From 5e042670c425da26fa463ca11b491f873b881a86 Mon Sep 17 00:00:00 2001 From: qugalet Date: Mon, 24 Jul 2023 18:47:58 +0300 Subject: [PATCH] fixed choose typo --- src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 196ccdd..48c2e42 100644 --- a/src/index.ts +++ b/src/index.ts @@ -125,7 +125,9 @@ async function main() { if ( roomId === process.env.MATRIX_ROOM_ID && event['content'] && - ['т', 'н'].includes(event['content']['body'].split('\n').at(-1).trim()) && + ['y', 'n', 'т', 'н'].includes( + (event['content']['body'].split('\n').at(-1).trim() as string).toLowerCase() + ) && event['content']['m.relates_to'] && event['content']['m.relates_to']['m.in_reply_to'] ) {