more home

This commit is contained in:
syuilo 2019-07-01 03:43:53 +09:00
parent 9348f35a0d
commit f4be7fb8f9
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

@ -156,13 +156,13 @@ export default class extends Module {
@autobind @autobind
private erait(msg: Message): boolean { private erait(msg: Message): boolean {
const match = msg.extractedText.match(/(.+?)たから褒めて/); const match = msg.extractedText.match(/(.+?)たから(|ほ)めて/);
if (match) { if (match) {
msg.reply(getSerif(serifs.core.erait.specify(match[1], msg.friend.name))); msg.reply(getSerif(serifs.core.erait.specify(match[1], msg.friend.name)));
return true; return true;
} }
const match2 = msg.extractedText.match(/(.+?)るから褒めて/); const match2 = msg.extractedText.match(/(.+?)るから(|ほ)めて/);
if (match2) { if (match2) {
msg.reply(getSerif(serifs.core.erait.specify(match[1], msg.friend.name))); msg.reply(getSerif(serifs.core.erait.specify(match[1], msg.friend.name)));
return true; return true;