2026-03-04 01:20:07 -05:00
|
|
|
import type { PluginRuntime } from "openclaw/plugin-sdk/compat";
|
2026-02-10 15:33:57 -08:00
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
}
|