mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-08 06:54:24 +00:00
15 lines
328 B
TypeScript
15 lines
328 B
TypeScript
import type { PluginRuntime } from "openclaw/plugin-sdk";
|
|
|
|
let runtime: PluginRuntime | null = null;
|
|
|
|
export function setTwitchRuntime(next: PluginRuntime) {
|
|
runtime = next;
|
|
}
|
|
|
|
export function getTwitchRuntime(): PluginRuntime {
|
|
if (!runtime) {
|
|
throw new Error("Twitch runtime not initialized");
|
|
}
|
|
return runtime;
|
|
}
|