Download extensions/irc/src/runtime.ts from shimen/shinclaw: direct link, hf CLI and curl.
- Browser
- Download file 319 Bytes
-
https://huggingface.co/spaces/shimen/shinclaw/resolve/main/extensions/irc/src/runtime.ts
- Command line
-
hf download hf://spaces/shimen/shinclaw/extensions/irc/src/runtime.ts
-
curl -L -o runtime.ts https://huggingface.co/spaces/shimen/shinclaw/resolve/main/extensions/irc/src/runtime.ts
319 Bytes
| import type { PluginRuntime } from "openclaw/plugin-sdk"; | |
| 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; | |
| } | |