import type { PluginRuntime } from "openclaw/plugin-sdk/core"; import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store"; import type { GatewayPluginRuntime } from "../engine/gateway/types.js"; import { setOpenClawVersion } from "../engine/messaging/sender.js";
/** Set the QQBot runtime and inject the framework version into the User-Agent. */ function setQQBotRuntime(runtime: PluginRuntime): void {
_setRuntime(runtime); // Inject the framework version into the User-Agent string (same as standalone).
setOpenClawVersion(runtime.version);
}
export { getQQBotRuntime, setQQBotRuntime };
/** Type-narrowed getter for engine/ modules that need GatewayPluginRuntime. */
export function getQQBotRuntimeForEngine(): GatewayPluginRuntime { return getQQBotRuntime() as unknown as GatewayPluginRuntime;
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.7 Sekunden
(vorverarbeitet am 2026-06-10)
¤
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.