This commit is contained in:
Xeltica 2018-12-03 14:30:49 +09:00
parent 6a3f7dc8a2
commit 11a22f3901

View file

@ -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;