diff --git a/src/index.ts b/src/index.ts index 613dd30..21a5f64 100644 --- a/src/index.ts +++ b/src/index.ts @@ -332,7 +332,7 @@ app.post("/interactions", async (c) => { const kind = hit.kind === "deafen" ? "ปิดหู" : "ปิดไมค์"; // Decision message - const intro = `ตรวจพบเหตุการณ์ ${kind}\nผู้กระทำ: <@${executorId}> → เป้าหมาย: <@${targetId}>\nเลือกการลงโทษโดยการใส่อีโมจิ:\n${EMOJI_RENAME} = เปลี่ยนชื่อเล่น, ${EMOJI_ROLE} = ลบ Role`; + const intro = `มีคนโดนทำร้าย😭😭 ${kind}\nคนทำ!: <@${executorId}> → คนโดน: <@${targetId}>\nเลือกการลงโทษโดยการกดส่งอีโมจิ:\n${EMOJI_RENAME} = เปลี่ยนชื่อเล่น, ${EMOJI_ROLE} = ลบ Role`; const sent = await sendMessage(channelId, intro); if (!sent.ok) { await editOriginal(token, "Cannot post decision message."); @@ -371,7 +371,7 @@ app.post("/interactions", async (c) => { } if (!chosen) { - await sendMessage(channelId, "หมดเวลา ไม่มีการเลือกลงโทษ"); + await sendMessage(channelId, "หมดเวลา ไม่มีการเลือกลงโทษ รอดตัวไป"); await editOriginal(token, "No decision taken."); return; } @@ -380,10 +380,10 @@ app.post("/interactions", async (c) => { // Ask for new nickname const ask = await sendMessage( channelId, - `เลือก: เปลี่ยนชื่อเล่น\nโปรดพิมพ์ชื่อใหม่ในข้อความถัดไปภายใน ${RENAME_TIMEOUT_SEC} วินาที` + `เลือก: เปลี่ยนชื่อเล่น\nพิมพ์ชื่อใหม่ในข้อความถัดไปภายใน ${RENAME_TIMEOUT_SEC} วินาที` ); if (!ask.ok) { - await sendMessage(channelId, "ไม่สามารถถามชื่อใหม่ได้"); + await sendMessage(channelId, "ถามชื่อไม่ได้ ทำไมอ่า"); return; } const askId = ask.data.id as string; @@ -406,19 +406,19 @@ app.post("/interactions", async (c) => { if (!newNick) { await sendMessage( channelId, - "หมดเวลาไม่ได้รับชื่อใหม่ ยกเลิกการเปลี่ยนชื่อ" + "หมดเวลาการลงชื่อใหม่ ไม่เปลี่ยนแม่งละชื่อ" ); } else { const ok = await setNickname(guildId, executorId, newNick); if (ok) { await sendMessage( channelId, - `ตั้งชื่อใหม่ให้ <@${executorId}> เป็น **${newNick}** แล้ว` + `ตั้งชื่อใหม่ให้ <@${executorId}> เป็น **${newNick}** แล้วนะคราฟ` ); } else { await sendMessage( channelId, - "เปลี่ยนชื่อไม่สำเร็จ (สิทธิ์ไม่พอหรือ role hierarchy)" + "เปลี่ยนชื่อไม่สำเร็จ (สิทธิ์ไม่พอครับพี่)" ); } } @@ -433,7 +433,7 @@ app.post("/interactions", async (c) => { if (ok) { await sendMessage( channelId, - `ลบ role ออกจาก <@${executorId}> แล้ว` + `ลบ role ออกจาก <@${executorId}> แล้วนะคราฟ` ); } else { await sendMessage(