Improve AI

This commit is contained in:
syuilo 2018-08-28 13:12:43 +09:00
parent eb6c1021e9
commit 4e8cae7b90

View file

@ -119,7 +119,7 @@ export default class CoreModule implements IModule {
msg.friend.incLove(); msg.friend.incLove();
}; };
if (msg.text.includes('おはよう')) { if (msg.text.includes('おはよう') || msg.text.includes('おはよ')) {
if (msg.friend.name) { if (msg.friend.name) {
msg.reply(serifs.core.goodMorningWithName.replace('{name}', msg.friend.name)); msg.reply(serifs.core.goodMorningWithName.replace('{name}', msg.friend.name));
} else { } else {