Actions19
Overview
This node interacts with the OneBot API to perform various operations related to friends, groups, messages, bots, members, and miscellaneous functions. Specifically, for the resource "好友" (Friend) and operation "给好友点赞" (Send Like to a Friend), it allows users to send likes to a specified friend a certain number of times. This is useful in social or messaging bot scenarios where automated interactions such as liking a friend's profile or activity are desired.
Practical examples include:
- Automatically sending daily likes to close friends to maintain engagement.
- Sending multiple likes to a friend within the allowed limit to show appreciation.
- Integrating with other workflows that trigger likes based on events or conditions.
Properties
| Name | Meaning |
|---|---|
| User Name or ID | Select a friend from the list or specify their ID using an expression. |
| Times | Number of times to send likes. Non-premium users can only like up to 10 times per day. |
Output
The node outputs JSON data representing the result of the like operation. The structure typically includes success status and any relevant response data from the OneBot API. If an error occurs, the output JSON contains an error field with the error message and a success field set to false.
No binary data output is involved in this operation.
Dependencies
- Requires connection to a OneBot API endpoint configured via an API key credential.
- The node depends on the OneBot API being accessible and authenticated properly.
- It uses internal helper methods to load friend lists dynamically for property options.
Troubleshooting
Common issues:
- Exceeding the daily like limit for non-premium users will likely cause errors.
- Invalid or missing user ID may result in failure to send likes.
- Network or authentication failures with the OneBot API will prevent operation execution.
Error messages:
- Errors returned by the OneBot API will be included in the output JSON under the
errorfield. - If the friend list cannot be loaded, the node may fail to populate the user selection dropdown.
- Execution errors during the operation will be logged and returned as part of the node output.
- Errors returned by the OneBot API will be included in the output JSON under the
Resolutions:
- Ensure the user ID is valid and selected correctly.
- Respect the daily like limits imposed by the service.
- Verify API credentials and network connectivity.
- Check logs for detailed error messages to diagnose issues.
Links and References
- OneBot API Documentation
- n8n Expressions Documentation (for specifying dynamic user IDs)
- OneBot GitHub Repository