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 <[email protected]>
  • Loading branch information
VinDotRun authored 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
Original file line number Diff line number Diff line change
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.