mirror of
https://github.com/nullnyat/NullcatChan.git
synced 2025-04-29 08:47:21 +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 {
|
} else {
|
||||||
// リアクションする
|
// リアクションする
|
||||||
this.api('notes/reactions/create', {
|
if (reaction) {
|
||||||
noteId: msg.id,
|
this.api('notes/reactions/create', {
|
||||||
reaction: reaction
|
noteId: msg.id,
|
||||||
});
|
reaction: reaction
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}, 1000);
|
}, 1000);
|
||||||
}
|
}
|
||||||
|
@ -17,11 +17,11 @@ export default class FollowModule implements IModule {
|
|||||||
userId: msg.userId,
|
userId: msg.userId,
|
||||||
});
|
});
|
||||||
return {
|
return {
|
||||||
reaction: 'like'
|
reaction: msg.friend.love >= 0 ? 'like' : null
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
return {
|
return {
|
||||||
reaction: 'hmm'
|
reaction: msg.friend.love >= 0 ? 'hmm' : null
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user