mirror of
https://github.com/syuilo/ai.git
synced 2024-11-22 05:08:00 +00:00
✌️
This commit is contained in:
parent
990cd7ccd2
commit
8886a24f16
10
src/ai.ts
10
src/ai.ts
|
@ -125,10 +125,12 @@ export default class 藍 {
|
|||
});
|
||||
} else {
|
||||
// リアクションする
|
||||
this.api('notes/reactions/create', {
|
||||
noteId: msg.id,
|
||||
reaction: reaction
|
||||
});
|
||||
if (reaction) {
|
||||
this.api('notes/reactions/create', {
|
||||
noteId: msg.id,
|
||||
reaction: reaction
|
||||
});
|
||||
}
|
||||
}
|
||||
}, 1000);
|
||||
}
|
||||
|
|
|
@ -17,11 +17,11 @@ export default class FollowModule implements IModule {
|
|||
userId: msg.userId,
|
||||
});
|
||||
return {
|
||||
reaction: 'like'
|
||||
reaction: msg.friend.love >= 0 ? 'like' : null
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
reaction: 'hmm'
|
||||
reaction: msg.friend.love >= 0 ? 'hmm' : null
|
||||
};
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue