2026-03-04 02:33:00 -05:00
|
|
|
import type { PluginRuntime } from "openclaw/plugin-sdk/irc";
|
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;
|
|
|
|
|
}
|