Skip to content

Commit

Permalink
fix discord voice memory id not unique
Browse files Browse the repository at this point in the history
  • Loading branch information
bmgalego committed Nov 23, 2024
1 parent 1253a13 commit 33cd8e3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/client-discord/src/voice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ export class VoiceManager extends EventEmitter {

const memory = {
id: stringToUuid(
channelId + "-voice-message-" + Date.now()
roomId + "-voice-message-" + Date.now()
),
agentId: this.runtime.agentId,
content: {
Expand Down Expand Up @@ -540,7 +540,11 @@ export class VoiceManager extends EventEmitter {

const responseMemory: Memory = {
id: stringToUuid(
memory.id + "-voice-response-" + Date.now()
roomId +
"-" +
memory.id +
"-voice-response-" +
Date.now()
),
agentId: this.runtime.agentId,
userId: this.runtime.agentId,
Expand Down

0 comments on commit 33cd8e3

Please sign in to comment.