Update index.ts

This commit is contained in:
syuilo 2018-09-03 00:03:19 +09:00
parent 7a74ffbf6e
commit abe4416dce

View file

@ -225,7 +225,7 @@ export default class CoreModule implements IModule {
} }
private hug = (msg: MessageLike): boolean => { private hug = (msg: MessageLike): boolean => {
if (!msg.or(['ぎゅ', /^はぐ(し(て|よ|よう)?)?$/])) return false; if (!msg.or(['ぎゅ', 'むぎゅ', /^はぐ(し(て|よ|よう)?)?$/])) return false;
// メッセージのみ // メッセージのみ
if (!msg.isMessage) return true; if (!msg.isMessage) return true;