test(boost-greeting): update greeting message to Indonesian
Update the boost greeting message and its corresponding test assertions to use Indonesian instead of English.
This commit is contained in:
@@ -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");
|
||||
});
|
||||
});
|
||||
|
||||
@@ -10,8 +10,8 @@ export async function sendBoostGreeting(
|
||||
greetingChannelId: string,
|
||||
): Promise<void> {
|
||||
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 });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user