Files
openclaw/extensions/irc/src/runtime.ts
2026-06-04 21:33:54 -04:00

17 lines
511 B
TypeScript

// Irc plugin module implements runtime behavior.
import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store";
import type { PluginRuntime } from "./runtime-api.js";
const {
setRuntime: setIrcRuntime,
clearRuntime: clearStoredIrcRuntime,
getRuntime: getIrcRuntime,
} = createPluginRuntimeStore<PluginRuntime>({
pluginId: "irc",
errorMessage: "IRC runtime not initialized",
});
export { getIrcRuntime, setIrcRuntime };
export function clearIrcRuntime() {
clearStoredIrcRuntime();
}