From c6a47b7854e7d8989adc7099e3a2cf527ac907c5 Mon Sep 17 00:00:00 2001 From: na2na-p Date: Mon, 21 Feb 2022 13:41:57 +0900 Subject: [PATCH] =?UTF-8?q?Update[emoji-react]=E3=81=8A=E3=82=B2=E3=83=BC?= =?UTF-8?q?=E3=83=A0=E3=81=97=E3=81=BE=E3=81=97=E3=82=87=E3=81=86=E3=81=AD?= =?UTF-8?q?=E3=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/emoji-react/index.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/modules/emoji-react/index.ts b/src/modules/emoji-react/index.ts index 7e037a8..4b5e5d5 100644 --- a/src/modules/emoji-react/index.ts +++ b/src/modules/emoji-react/index.ts @@ -88,5 +88,15 @@ export default class extends Module { if (includes(note.text, ['ずなず']) || includes(note.text, ['ずにゃず'])) return react('🙌'); if (includes(note.text, ['なず']) || includes(note.text, ['にゃず'])) return react(':google_hart:'); + + const gameReact = [ + ':ysvi:', + ':ysf:', + ':yso:' + ] + if (includes(note.text, ['おゲームするかしら'])){ + // gameReactの中からランダムに選択 + return react(gameReact[Math.floor(Math.random() * gameReact.length)]); + } } }