mirror of
https://github.com/hanzoai/bot.git
synced 2026-11-02 20:15:14 +00:00
Squash merge of 1,462 upstream commits with openclaw→hanzo-bot naming transforms applied. Conflicts resolved favoring our main branch to preserve existing customizations. Key upstream additions: - iOS Security Stack (concurrency locks, runtime guards, TTS fallback) - Discord CDN hostname allowlisting for SSRF protection - Discord mention handling improvements - Various bug fixes and stability improvements
18 lines
519 B
TypeScript
18 lines
519 B
TypeScript
import type { BotPluginApi } from "bot/plugin-sdk";
|
|
import { emptyPluginConfigSchema } from "bot/plugin-sdk";
|
|
import { zaloDock, zaloPlugin } from "./src/channel.js";
|
|
import { setZaloRuntime } from "./src/runtime.js";
|
|
|
|
const plugin = {
|
|
id: "zalo",
|
|
name: "Zalo",
|
|
description: "Zalo channel plugin (Bot API)",
|
|
configSchema: emptyPluginConfigSchema(),
|
|
register(api: BotPluginApi) {
|
|
setZaloRuntime(api.runtime);
|
|
api.registerChannel({ plugin: zaloPlugin, dock: zaloDock });
|
|
},
|
|
};
|
|
|
|
export default plugin;
|