Message only

This commit is contained in:
syuilo 2018-09-02 19:24:10 +09:00
parent ee245cd787
commit d66ca4e326

View file

@ -212,6 +212,9 @@ export default class CoreModule implements IModule {
private humu = (msg: MessageLike): boolean => { private humu = (msg: MessageLike): boolean => {
if (!includes(msg.text, ['踏んで'])) return false; if (!includes(msg.text, ['踏んで'])) return false;
// メッセージのみ
if (!msg.isMessage) return true;
msg.reply( msg.reply(
msg.friend.love <= -3 ? serifs.core.humu.hate : msg.friend.love <= -3 ? serifs.core.humu.hate :
serifs.core.humu.normal); serifs.core.humu.normal);
@ -222,6 +225,9 @@ export default class CoreModule implements IModule {
private batou = (msg: MessageLike): boolean => { private batou = (msg: MessageLike): boolean => {
if (!includes(msg.text, ['罵倒して', '罵って'])) return false; if (!includes(msg.text, ['罵倒して', '罵って'])) return false;
// メッセージのみ
if (!msg.isMessage) return true;
msg.reply( msg.reply(
msg.friend.love >= 5 ? serifs.core.batou.love : msg.friend.love >= 5 ? serifs.core.batou.love :
msg.friend.love <= -5 ? serifs.core.batou.hate : msg.friend.love <= -5 ? serifs.core.batou.hate :