mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-14 03:20:49 +00:00
Adds IRC as a first-class channel with core config surfaces (schema/hints/dock), plugin auto-enable detection, routing/policy alignment, and docs/tests. Co-authored-by: Vignesh <vigneshnatarajan92@gmail.com>
15 lines
319 B
TypeScript
15 lines
319 B
TypeScript
import type { PluginRuntime } from "openclaw/plugin-sdk";
|
|
|
|
let runtime: PluginRuntime | null = null;
|
|
|
|
export function setIrcRuntime(next: PluginRuntime) {
|
|
runtime = next;
|
|
}
|
|
|
|
export function getIrcRuntime(): PluginRuntime {
|
|
if (!runtime) {
|
|
throw new Error("IRC runtime not initialized");
|
|
}
|
|
return runtime;
|
|
}
|