mirror of
https://github.com/syuilo/ai.git
synced 2025-03-25 21:12:56 +00:00
バグったのでやり方かえた
This commit is contained in:
parent
50083961da
commit
d0c8cb2562
2 changed files with 1 additions and 2 deletions
|
@ -43,7 +43,6 @@ export default class MessageLike {
|
|||
this.ai.api('users/show', {
|
||||
userId: this.userId
|
||||
}).then(user => {
|
||||
this.messageOrNote.user = user;
|
||||
this.friend.updateUser(user);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ export default class FollowModule implements IModule {
|
|||
|
||||
public onMention = (msg: MessageLike) => {
|
||||
if (msg.text && msg.text.includes('フォロー')) {
|
||||
if (msg.user.isFollowing) {
|
||||
if (msg.friend.doc.user.isFollowing) {
|
||||
msg.reply(serifs.follow.alreadyFollowed);
|
||||
} else if (msg.friend.love < -5) {
|
||||
msg.reply(serifs.follow.ng);
|
||||
|
|
Loading…
Reference in a new issue