From 6e598228c7c2eff2afd2f38e4efadba5b1207ce7 Mon Sep 17 00:00:00 2001 From: doe Date: Sun, 19 Oct 2025 12:14:29 +0200 Subject: [PATCH] feat: add urls in description + create chevy config file --- apps/bot/src/app/events/clientReady/updateDescription.ts | 3 ++- apps/bot/src/config/core/chevy.config.ts | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 apps/bot/src/config/core/chevy.config.ts diff --git a/apps/bot/src/app/events/clientReady/updateDescription.ts b/apps/bot/src/app/events/clientReady/updateDescription.ts index a0bce57..2b5ce45 100644 --- a/apps/bot/src/app/events/clientReady/updateDescription.ts +++ b/apps/bot/src/app/events/clientReady/updateDescription.ts @@ -1,4 +1,5 @@ import { commandMention } from "@/features/discord/command.service"; +import chevyConfig from "@/config/core/chevy.config"; import type { EventHandler } from "commandkit"; export const once = true; @@ -19,7 +20,7 @@ const handler: EventHandler<"clientReady"> = async (client) => { Use ${await commandMention("hevy link")} to get started ! -https://chevy.fit/add-bot +${chevyConfig.addBotLink} - ${chevyConfig.mainDiscordInviteLink} (Chevy is not affiliated with Hevy) - \`v${botVersion}\` `, diff --git a/apps/bot/src/config/core/chevy.config.ts b/apps/bot/src/config/core/chevy.config.ts new file mode 100644 index 0000000..75a25bf --- /dev/null +++ b/apps/bot/src/config/core/chevy.config.ts @@ -0,0 +1,7 @@ +const WEBSITE_DOMAIN = "chevy.fit"; + +export default { + website: `https://${WEBSITE_DOMAIN}`, + addBotLink: `https://${WEBSITE_DOMAIN}/add-bot`, + mainDiscordInviteLink: `https://${WEBSITE_DOMAIN}/discord`, +};