mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 04:50:42 +00:00
Merged via squash.
Prepared head SHA: e8d6738fd0
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Reviewed-by: @gumadeiras
16 lines
461 B
TypeScript
16 lines
461 B
TypeScript
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();
|
|
}
|