mirror of
https://github.com/syuilo/ai.git
synced 2025-04-18 00:26:42 +00:00
fix bugs
This commit is contained in:
parent
6a3f7dc8a2
commit
11a22f3901
1 changed files with 12 additions and 13 deletions
|
@ -18,8 +18,6 @@ export default class FollowModule implements IModule {
|
||||||
userId: msg.userId,
|
userId: msg.userId,
|
||||||
}).then(u => {
|
}).then(u => {
|
||||||
user = u;
|
user = u;
|
||||||
});
|
|
||||||
|
|
||||||
if (user.isFollowing) {
|
if (user.isFollowing) {
|
||||||
msg.reply(serifs.follow.alreadyFollowed);
|
msg.reply(serifs.follow.alreadyFollowed);
|
||||||
} else if (msg.friend.love < -5) {
|
} else if (msg.friend.love < -5) {
|
||||||
|
@ -32,6 +30,7 @@ export default class FollowModule implements IModule {
|
||||||
});
|
});
|
||||||
msg.reply(serifs.follow.ok);
|
msg.reply(serifs.follow.ok);
|
||||||
}
|
}
|
||||||
|
});
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue