import type { OpenClawPluginApi } from "openclaw/plugin-sdk/core"; import { getAccessToken } from "../../engine/messaging/sender.js"; import { ChannelApiSchema, executeChannelApi } from "../../engine/tools/channel-api.js"; import type { ChannelApiParams } from "../../engine/tools/channel-api.js"; import { listQQBotAccountIds, resolveQQBotAccount } from "../config.js"; import { getBridgeLogger } from "../logger.js";
/** *RegistertheQQchannelAPIproxytool. * *ThetoolactsasanauthenticatedHTTPproxyfortheQQOpenPlatform *channelAPIs.Agentslearnendpointdetailsfromtheskilldocsand *sendrequeststhroughthisproxy.
*/
export function registerChannelTool(api: OpenClawPluginApi): void { const cfg = api.config; if (!cfg) {
getBridgeLogger().debug?.("[qqbot-channel-api] No config available, skipping"); return;
}
const accountIds = listQQBotAccountIds(cfg); if (accountIds.length === 0) {
getBridgeLogger().debug?.("[qqbot-channel-api] No QQBot accounts configured, skipping"); return;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.