mirror of
https://github.com/nullnyat/NullcatChan.git
synced 2025-08-08 01:33:52 +09:00
Improve AI
This commit is contained in:
@ -33,6 +33,7 @@ export default class CoreModule implements IModule {
|
||||
this.nadenade(msg) ||
|
||||
this.kawaii(msg) ||
|
||||
this.suki(msg) ||
|
||||
this.hug(msg) ||
|
||||
this.humu(msg) ||
|
||||
this.batou(msg) ||
|
||||
this.ponkotu(msg)
|
||||
@ -223,6 +224,20 @@ export default class CoreModule implements IModule {
|
||||
return true;
|
||||
}
|
||||
|
||||
private hug = (msg: MessageLike): boolean => {
|
||||
if (!msg.or(['ぎゅ'])) return false;
|
||||
|
||||
// メッセージのみ
|
||||
if (!msg.isMessage) return true;
|
||||
|
||||
msg.reply(
|
||||
msg.friend.love >= 5 ? serifs.core.hug.love :
|
||||
msg.friend.love <= -3 ? serifs.core.hug.hate :
|
||||
serifs.core.hug.normal);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
private humu = (msg: MessageLike): boolean => {
|
||||
if (!msg.includes(['踏んで'])) return false;
|
||||
|
||||
|
Reference in New Issue
Block a user