Improve AI

This commit is contained in:
syuilo
2018-09-02 23:40:03 +09:00
parent 9872ef158b
commit 53a07d0d06
6 changed files with 25 additions and 20 deletions

View File

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