mirror of
https://github.com/syuilo/ai.git
synced 2024-11-09 23:48:01 +00:00
Message only
This commit is contained in:
parent
ee245cd787
commit
d66ca4e326
|
@ -212,6 +212,9 @@ export default class CoreModule implements IModule {
|
|||
private humu = (msg: MessageLike): boolean => {
|
||||
if (!includes(msg.text, ['踏んで'])) return false;
|
||||
|
||||
// メッセージのみ
|
||||
if (!msg.isMessage) return true;
|
||||
|
||||
msg.reply(
|
||||
msg.friend.love <= -3 ? serifs.core.humu.hate :
|
||||
serifs.core.humu.normal);
|
||||
|
@ -222,6 +225,9 @@ export default class CoreModule implements IModule {
|
|||
private batou = (msg: MessageLike): boolean => {
|
||||
if (!includes(msg.text, ['罵倒して', '罵って'])) return false;
|
||||
|
||||
// メッセージのみ
|
||||
if (!msg.isMessage) return true;
|
||||
|
||||
msg.reply(
|
||||
msg.friend.love >= 5 ? serifs.core.batou.love :
|
||||
msg.friend.love <= -5 ? serifs.core.batou.hate :
|
||||
|
|
Loading…
Reference in a new issue