こんにちはサポート

This commit is contained in:
syuilo
2018-08-29 16:34:07 +09:00
parent 88f84b8a3d
commit 2f14ba690c
2 changed files with 14 additions and 0 deletions

View File

@ -120,6 +120,18 @@ export default class CoreModule implements IModule {
msg.friend.incLove();
};
if (msg.text.includes('こんにちは')) {
if (msg.friend.name) {
msg.reply(serifs.core.helloWithName.replace('{name}', msg.friend.name));
} else {
msg.reply(serifs.core.hello);
}
incLove();
return true;
}
if (msg.text.includes('おはよ')) {
if (msg.friend.name) {
msg.reply(serifs.core.goodMorningWithName.replace('{name}', msg.friend.name));