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;