fix: activity name update (#503)

Signed-off-by: Vin <28811713+VinDotRun@users.noreply.github.com>
This commit is contained in:
Vin 2023-11-18 20:43:28 -03:00 committed by GitHub
parent 17b68e997b
commit 12c4c96c1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)