n8n-nodes-onebot-api
Version:
OneBot node for n8n workflow, now you can send message to your QQ friend or group. This version includes optimized group and private chat operations and enhanced permission grading. OneBot 节点用于 n8n 工作流,现在您可以向您的 QQ 朋友或群组发送消息。此版本包括优化的群聊和私聊操作以及增强的权限分级。
27 lines • 1.01 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.executeMiscOperation = void 0;
const GenericFunctions_1 = require("./GenericFunctions");
async function executeMiscOperation(index) {
const operation = this.getNodeParameter('operation', index);
let responseData = {};
let method = 'GET';
let endpoint = '';
switch (operation) {
case 'get_status':
endpoint = 'get_status';
method = 'GET';
break;
case 'get_version_info':
endpoint = 'get_version_info';
method = 'GET';
break;
default:
throw new Error(`未知的杂项操作: ${operation}`);
}
console.log(`执行杂项操作: ${operation}, 端点: ${endpoint}`);
responseData = await GenericFunctions_1.apiRequest.call(this, method, endpoint);
return responseData;
}
exports.executeMiscOperation = executeMiscOperation;
//# sourceMappingURL=MiscActions.js.map