バグったのでやり方かえた

This commit is contained in:
Xeltica 2018-12-03 00:10:15 +09:00
parent 50083961da
commit d0c8cb2562
2 changed files with 1 additions and 2 deletions

View file

@ -43,7 +43,6 @@ export default class MessageLike {
this.ai.api('users/show', { this.ai.api('users/show', {
userId: this.userId userId: this.userId
}).then(user => { }).then(user => {
this.messageOrNote.user = user;
this.friend.updateUser(user); this.friend.updateUser(user);
}); });
} }

View file

@ -13,7 +13,7 @@ export default class FollowModule implements IModule {
public onMention = (msg: MessageLike) => { public onMention = (msg: MessageLike) => {
if (msg.text && msg.text.includes('フォロー')) { if (msg.text && msg.text.includes('フォロー')) {
if (msg.user.isFollowing) { if (msg.friend.doc.user.isFollowing) {
msg.reply(serifs.follow.alreadyFollowed); msg.reply(serifs.follow.alreadyFollowed);
} else if (msg.friend.love < -5) { } else if (msg.friend.love < -5) {
msg.reply(serifs.follow.ng); msg.reply(serifs.follow.ng);