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