mirror of https://github.com/openclaw/openclaw.git
10 lines
408 B
TypeScript
10 lines
408 B
TypeScript
import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store";
|
|
import type { PluginRuntime } from "./runtime-api.js";
|
|
|
|
const { setRuntime: setIrcRuntime, getRuntime: getIrcRuntime } =
|
|
createPluginRuntimeStore<PluginRuntime>("IRC runtime not initialized");
|
|
export { getIrcRuntime, setIrcRuntime };
|
|
export function clearIrcRuntime() {
|
|
setIrcRuntime(undefined as unknown as PluginRuntime);
|
|
}
|