diff --git a/src/modules/follow/index.ts b/src/modules/follow/index.ts index 0f0329e..0d779f7 100644 --- a/src/modules/follow/index.ts +++ b/src/modules/follow/index.ts @@ -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;