From 87a291c2076a6187175457d2501bcf3a4c6a6007 Mon Sep 17 00:00:00 2001 From: na2na <49822810+na2na-p@users.noreply.github.com> Date: Tue, 8 Mar 2022 00:48:24 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=A9=E3=81=93-=E3=81=8A=E3=81=B5=E3=81=A8?= =?UTF-8?q?=E3=82=93?= 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, 7 insertions(+), 3 deletions(-) diff --git a/src/modules/emoji-react/index.ts b/src/modules/emoji-react/index.ts index 62c3877..4f2b74b 100644 --- a/src/modules/emoji-react/index.ts +++ b/src/modules/emoji-react/index.ts @@ -28,7 +28,7 @@ export default class extends Module { const react = async (reaction: string, immediate = false) => { if (!immediate) { - await delay(1500); + await delay(2500); } this.ai.api('notes/reactions/create', { noteId: note.id, @@ -38,11 +38,11 @@ export default class extends Module { // /う[〜|ー]*んこ/g]にマッチしたときの処理 if (note.text.match(/う[〜|ー]*んこ/g) || includes(note.text, ['unko'])) { - await react(':anataima_unkotte_iimashitane:'); + return await react(':anataima_unkotte_iimashitane:'); } if (note.text.match(/う[〜|ー]*んち/g)) { - await react(':erait:'); + return await react(':erait:'); } if (includes(note.text, ['いい']) && (includes(note.text, ["?"]) || includes(note.text, ["?"]))) { @@ -54,6 +54,10 @@ export default class extends Module { } } + if (includes(note.text, ['どこ'])) { + return await react(':t_ofuton:'); + } + const customEmojis = note.text.match(/:([^\n:]+?):/g); if (customEmojis) { // カスタム絵文字が複数種類ある場合はキャンセル