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");
|
await sendBoostGreeting(channel, "user-123", "channel-456");
|
||||||
|
|
||||||
expect(sent.length).toBe(1);
|
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("<@user-123>");
|
||||||
expect(sent[0]).toContain("/booster-role claim");
|
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 () => {
|
test("handles different user and channel IDs", async () => {
|
||||||
@@ -30,6 +30,6 @@ describe("sendBoostGreeting", () => {
|
|||||||
await sendBoostGreeting(channel, "other-user", "other-channel");
|
await sendBoostGreeting(channel, "other-user", "other-channel");
|
||||||
|
|
||||||
expect(sent[0]).toContain("<@other-user>");
|
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,
|
greetingChannelId: string,
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
const message =
|
const message =
|
||||||
`🎉 Thank you for boosting <@${userId}>! ` +
|
`🎉 Makasih udah ngeboost <@${userId}>! ` +
|
||||||
`You can now claim a custom role using \`/booster-role claim\` in <#${greetingChannelId}>.`;
|
`Sekarang kamu bisa claim custom role pake \`/booster-role claim\` di sini.`;
|
||||||
|
|
||||||
await channel.send({ content: message });
|
await channel.send({ content: message });
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user