From 12c4c96c1fe7c56990fd385fc9e26217ea9ff467 Mon Sep 17 00:00:00 2001 From: Vin <28811713+VinDotRun@users.noreply.github.com> Date: Sat, 18 Nov 2023 20:43:28 -0300 Subject: [PATCH] fix: activity name update (#503) Signed-off-by: Vin <28811713+VinDotRun@users.noreply.github.com> --- src/listeners/client/ready.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/listeners/client/ready.js b/src/listeners/client/ready.js index 0f273e7..4aa7572 100644 --- a/src/listeners/client/ready.js +++ b/src/listeners/client/ready.js @@ -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)