mirror of
https://github.com/nullnyat/NullcatChan.git
synced 2025-04-29 05:07:19 +09: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…
x
Reference in New Issue
Block a user