mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 18:20:44 +00:00
fix: preserve discord announce account routing
This commit is contained in:
@@ -43,6 +43,7 @@
|
||||
"blurb": "very well supported right now.",
|
||||
"systemImage": "bubble.left.and.bubble.right",
|
||||
"markdownCapable": true,
|
||||
"preferSessionLookupForAnnounceTarget": true,
|
||||
"commands": {
|
||||
"nativeCommandsAutoEnabled": true,
|
||||
"nativeSkillsAutoEnabled": true
|
||||
|
||||
@@ -18,6 +18,7 @@ const DISCORD_CHANNEL_META = {
|
||||
blurb: "very well supported right now.",
|
||||
systemImage: "bubble.left.and.bubble.right",
|
||||
markdownCapable: true,
|
||||
preferSessionLookupForAnnounceTarget: true,
|
||||
} as const;
|
||||
|
||||
export function getChatChannelMeta(id: string) {
|
||||
|
||||
@@ -32,6 +32,12 @@ describe("createDiscordPluginBase", () => {
|
||||
expect(plugin.security?.collectAuditFindings).toBeTypeOf("function");
|
||||
});
|
||||
|
||||
it("hydrates announce delivery targets from stored session routing", () => {
|
||||
const plugin = createDiscordPluginBase({ setup: {} as never });
|
||||
|
||||
expect(plugin.meta.preferSessionLookupForAnnounceTarget).toBe(true);
|
||||
});
|
||||
|
||||
it("reports duplicate-token accounts as disabled to gateway startup", () => {
|
||||
vi.stubEnv("DISCORD_BOT_TOKEN", "same-token");
|
||||
const plugin = createDiscordPluginBase({ setup: {} as never });
|
||||
|
||||
Reference in New Issue
Block a user