@epiphytic/openclaw-discord-voice 1.3.2 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.ts +6 -6
- package/openclaw.plugin.json +2 -2
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -31,7 +31,7 @@ interface DiscordVoiceConfig {
|
|
|
31
31
|
enabled?: boolean;
|
|
32
32
|
pythonPath?: string;
|
|
33
33
|
botToken: string;
|
|
34
|
-
guildIds:
|
|
34
|
+
guildIds: string[];
|
|
35
35
|
transcriptChannelId?: string;
|
|
36
36
|
llmModel?: string;
|
|
37
37
|
llmUrl?: string;
|
|
@@ -459,7 +459,7 @@ export default function register(api: OpenClawPluginApi): void {
|
|
|
459
459
|
|
|
460
460
|
const cfg: DiscordVoiceConfig = {
|
|
461
461
|
botToken: (raw.botToken as string) ?? "",
|
|
462
|
-
guildIds: (raw.guildIds as number[]) ?? [],
|
|
462
|
+
guildIds: ((raw.guildIds as (number | string)[]) ?? []).map(String),
|
|
463
463
|
transcriptChannelId: raw.transcriptChannelId as string | undefined,
|
|
464
464
|
llmModel: raw.llmModel as string | undefined,
|
|
465
465
|
llmUrl: raw.llmUrl as string | undefined,
|
|
@@ -575,8 +575,8 @@ export default function register(api: OpenClawPluginApi): void {
|
|
|
575
575
|
label: "Voice Join",
|
|
576
576
|
description: "Join a Discord voice channel. The voice bot will connect and start listening.",
|
|
577
577
|
parameters: Type.Object({
|
|
578
|
-
guild_id: Type.
|
|
579
|
-
channel_id: Type.
|
|
578
|
+
guild_id: Type.String({ description: "Discord guild (server) ID" }),
|
|
579
|
+
channel_id: Type.String({ description: "Discord voice channel ID" }),
|
|
580
580
|
}),
|
|
581
581
|
async execute(_id, params) {
|
|
582
582
|
if (!botManager) {
|
|
@@ -602,7 +602,7 @@ export default function register(api: OpenClawPluginApi): void {
|
|
|
602
602
|
label: "Voice Leave",
|
|
603
603
|
description: "Disconnect the voice bot from a Discord voice channel.",
|
|
604
604
|
parameters: Type.Object({
|
|
605
|
-
guild_id: Type.
|
|
605
|
+
guild_id: Type.String({ description: "Discord guild (server) ID" }),
|
|
606
606
|
}),
|
|
607
607
|
async execute(_id, params) {
|
|
608
608
|
if (!botManager) {
|
|
@@ -625,7 +625,7 @@ export default function register(api: OpenClawPluginApi): void {
|
|
|
625
625
|
label: "Voice Speak",
|
|
626
626
|
description: "Synthesize text and play it in a Discord voice channel.",
|
|
627
627
|
parameters: Type.Object({
|
|
628
|
-
guild_id: Type.
|
|
628
|
+
guild_id: Type.String({ description: "Discord guild (server) ID" }),
|
|
629
629
|
text: Type.String({ description: "Text to synthesize and play" }),
|
|
630
630
|
}),
|
|
631
631
|
async execute(_id, params) {
|
package/openclaw.plugin.json
CHANGED
|
@@ -110,8 +110,8 @@
|
|
|
110
110
|
},
|
|
111
111
|
"guildIds": {
|
|
112
112
|
"type": "array",
|
|
113
|
-
"items": { "type": "
|
|
114
|
-
"description": "Discord guild IDs"
|
|
113
|
+
"items": { "type": "string" },
|
|
114
|
+
"description": "Discord guild IDs (as strings to preserve full precision)"
|
|
115
115
|
},
|
|
116
116
|
"transcriptChannelId": {
|
|
117
117
|
"type": "string",
|