mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-29 02:13:35 +00:00
17 lines
511 B
TypeScript
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();
|
|
}
|