mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-15 12:00:43 +00:00
15 lines
351 B
TypeScript
15 lines
351 B
TypeScript
import type { PluginRuntime } from "openclaw/plugin-sdk/mattermost";
|
|
|
|
let runtime: PluginRuntime | null = null;
|
|
|
|
export function setMattermostRuntime(next: PluginRuntime) {
|
|
runtime = next;
|
|
}
|
|
|
|
export function getMattermostRuntime(): PluginRuntime {
|
|
if (!runtime) {
|
|
throw new Error("Mattermost runtime not initialized");
|
|
}
|
|
return runtime;
|
|
}
|