Spaces:
Paused
Paused
Download extensions/line/src/runtime.ts from nikhtu10/OpenClawBot: direct link, hf CLI and curl.
- Browser
- Download file 346 Bytes
-
https://huggingface.co/spaces/nikhtu10/OpenClawBot/resolve/main/extensions/line/src/runtime.ts
- Command line
-
hf download hf://spaces/nikhtu10/OpenClawBot/extensions/line/src/runtime.ts
-
curl -L -o runtime.ts https://huggingface.co/spaces/nikhtu10/OpenClawBot/resolve/main/extensions/line/src/runtime.ts
346 Bytes
| import type { PluginRuntime } from "openclaw/plugin-sdk"; | |
| let runtime: PluginRuntime | null = null; | |
| export function setLineRuntime(r: PluginRuntime): void { | |
| runtime = r; | |
| } | |
| export function getLineRuntime(): PluginRuntime { | |
| if (!runtime) { | |
| throw new Error("LINE runtime not initialized - plugin not registered"); | |
| } | |
| return runtime; | |
| } | |