From e5e9d0076ecf0960e8d28efba19ddd11e72b05fa Mon Sep 17 00:00:00 2001 From: na2na <49822810+na2na-p@users.noreply.github.com> Date: Thu, 17 Feb 2022 00:46:40 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=98=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/ping/index.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/modules/ping/index.ts b/src/modules/ping/index.ts index 147a7d5..c3bf81c 100644 --- a/src/modules/ping/index.ts +++ b/src/modules/ping/index.ts @@ -14,10 +14,16 @@ export default class extends Module { @autobind private async mentionHook(msg: Message) { - if (msg.text && msg.text.includes('ping')) { - msg.reply('PONG!', { - immediate: true - }); + if (msg.text && (msg.text.includes('ping') || msg.text.includes('おい'))) { + if (msg.text.includes('おい')) { + msg.reply('はい。。。', { + immediate: true + }); + } else { + msg.reply('PONG!', { + immediate: true + }); + } return true; } else { return false;