mirror of
https://github.com/syuilo/ai.git
synced 2024-12-22 08:21:08 +00:00
Improve readability
This commit is contained in:
parent
114725d7f4
commit
64d197eeed
|
@ -132,7 +132,9 @@ export default class CoreModule implements IModule {
|
|||
incLove();
|
||||
|
||||
return true;
|
||||
} else if (msg.text.includes('おやすみ')) {
|
||||
}
|
||||
|
||||
if (msg.text.includes('おやすみ')) {
|
||||
if (msg.friend.name) {
|
||||
msg.reply(serifs.core.goodNightWithName.replace('{name}', msg.friend.name));
|
||||
} else {
|
||||
|
@ -142,9 +144,9 @@ export default class CoreModule implements IModule {
|
|||
incLove();
|
||||
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
private nadenade = (msg: MessageLike): boolean => {
|
||||
|
|
Loading…
Reference in a new issue