Skip to content

Commit

Permalink
fix: activity name update (#503)
Browse files Browse the repository at this point in the history
Signed-off-by: Vin <28811713+VinDotRun@users.noreply.github.com>
  • Loading branch information
VinDotRun committed Nov 18, 2023
1 parent 17b68e9 commit 12c4c96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/listeners/client/ready.js
Expand Up @@ -75,7 +75,7 @@ module.exports = class extends Listener {
};
await client.keyv.set(cacheKey, cached, ms('15m'));
}
const activity = client.config.presence.activities[next];
const activity = { ...client.config.presence.activities[next] };
activity.name = activity.name
.replace(/{+avgResolutionTime}+/gi, cached.avgResolutionTime)
.replace(/{+avgResponseTime}+/gi, cached.avgResponseTime)
Expand Down

0 comments on commit 12c4c96

Please sign in to comment.