mirror of https://github.com/openclaw/openclaw.git
15 lines
339 B
TypeScript
15 lines
339 B
TypeScript
import type { PluginRuntime } from "openclaw/plugin-sdk/msteams";
|
|
|
|
let runtime: PluginRuntime | null = null;
|
|
|
|
export function setMSTeamsRuntime(next: PluginRuntime) {
|
|
runtime = next;
|
|
}
|
|
|
|
export function getMSTeamsRuntime(): PluginRuntime {
|
|
if (!runtime) {
|
|
throw new Error("MSTeams runtime not initialized");
|
|
}
|
|
return runtime;
|
|
}
|