mirror of
https://github.com/syuilo/ai.git
synced 2025-03-25 21:12:56 +00:00
fix bugs
This commit is contained in:
parent
6a3f7dc8a2
commit
11a22f3901
1 changed files with 12 additions and 13 deletions
|
@ -18,20 +18,19 @@ export default class FollowModule implements IModule {
|
|||
userId: msg.userId,
|
||||
}).then(u => {
|
||||
user = u;
|
||||
if (user.isFollowing) {
|
||||
msg.reply(serifs.follow.alreadyFollowed);
|
||||
} else if (msg.friend.love < -5) {
|
||||
msg.reply(serifs.follow.ng);
|
||||
} else if (msg.friend.love <= 3) {
|
||||
msg.reply(serifs.follow.requireMoreLove);
|
||||
} else {
|
||||
this.ai.api("following/create", {
|
||||
userId: msg.userId,
|
||||
});
|
||||
msg.reply(serifs.follow.ok);
|
||||
}
|
||||
});
|
||||
|
||||
if (user.isFollowing) {
|
||||
msg.reply(serifs.follow.alreadyFollowed);
|
||||
} else if (msg.friend.love < -5) {
|
||||
msg.reply(serifs.follow.ng);
|
||||
} else if (msg.friend.love <= 3) {
|
||||
msg.reply(serifs.follow.requireMoreLove);
|
||||
} else {
|
||||
this.ai.api("following/create", {
|
||||
userId: msg.userId,
|
||||
});
|
||||
msg.reply(serifs.follow.ok);
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue