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