From 97442265baf3fc92fe9c094138419a7166e2d126 Mon Sep 17 00:00:00 2001 From: MythEclipse Date: Sat, 6 Jun 2026 03:38:37 +0700 Subject: [PATCH] test(boost-greeting): update greeting message to Indonesian Update the boost greeting message and its corresponding test assertions to use Indonesian instead of English. --- src/discord/events/boostGreeting.test.ts | 6 +++--- src/discord/events/boostGreeting.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/discord/events/boostGreeting.test.ts b/src/discord/events/boostGreeting.test.ts index c727a9b..c51382a 100644 --- a/src/discord/events/boostGreeting.test.ts +++ b/src/discord/events/boostGreeting.test.ts @@ -13,10 +13,10 @@ describe("sendBoostGreeting", () => { await sendBoostGreeting(channel, "user-123", "channel-456"); expect(sent.length).toBe(1); - expect(sent[0]).toContain("Thank you for boosting"); + expect(sent[0]).toContain("Makasih udah ngeboost"); expect(sent[0]).toContain("<@user-123>"); expect(sent[0]).toContain("/booster-role claim"); - expect(sent[0]).toContain("<#channel-456>"); + expect(sent[0]).toContain("di sini"); }); test("handles different user and channel IDs", async () => { @@ -30,6 +30,6 @@ describe("sendBoostGreeting", () => { await sendBoostGreeting(channel, "other-user", "other-channel"); expect(sent[0]).toContain("<@other-user>"); - expect(sent[0]).toContain("<#other-channel>"); + expect(sent[0]).toContain("di sini"); }); }); diff --git a/src/discord/events/boostGreeting.ts b/src/discord/events/boostGreeting.ts index 88ff1b2..d2c618b 100644 --- a/src/discord/events/boostGreeting.ts +++ b/src/discord/events/boostGreeting.ts @@ -10,8 +10,8 @@ export async function sendBoostGreeting( greetingChannelId: string, ): Promise { const message = - `🎉 Thank you for boosting <@${userId}>! ` + - `You can now claim a custom role using \`/booster-role claim\` in <#${greetingChannelId}>.`; + `🎉 Makasih udah ngeboost <@${userId}>! ` + + `Sekarang kamu bisa claim custom role pake \`/booster-role claim\` di sini.`; await channel.send({ content: message });