From 795bb1232c7905d16933fab774e810bba11ea737 Mon Sep 17 00:00:00 2001 From: kiwitaco Date: Fri, 12 Jun 2026 09:23:18 -0400 Subject: [PATCH 1/2] Adjust the /uwc command to change voting options, streamlining them. --- src/slash-commands/uwc.command.test.ts | 40 ++++++++++++-------------- src/slash-commands/uwc.command.ts | 5 ++-- 2 files changed, 20 insertions(+), 25 deletions(-) diff --git a/src/slash-commands/uwc.command.test.ts b/src/slash-commands/uwc.command.test.ts index ee98012..175b06d 100644 --- a/src/slash-commands/uwc.command.test.ts +++ b/src/slash-commands/uwc.command.test.ts @@ -97,11 +97,10 @@ describe("SlashCommand: uwc", () => { text: "Is this an Unwelcome Concept?", }, answers: [ - { text: "No, leave as is" }, - { text: "No, but can be improved by change to achievement" }, - { text: "Yes, demote" }, - { text: "Yes, but can be salvaged by change to achievement" }, - { text: "Need further discussion" }, + { text: "Yes, demote" }, + { text: "No, leave as is" }, + { text: "No, transfer" }, + { text: "Need further discussion" }, ], allowMultiselect: false, duration: 72, @@ -188,11 +187,10 @@ describe("SlashCommand: uwc", () => { text: "Is this an Unwelcome Concept?", }, answers: [ - { text: "No, leave as is" }, - { text: "No, but can be improved by change to achievement" }, - { text: "Yes, demote" }, - { text: "Yes, but can be salvaged by change to achievement" }, - { text: "Need further discussion" }, + { text: "Yes, demote" }, + { text: "No, leave as is" }, + { text: "No, transfer" }, + { text: "Need further discussion" }, ], allowMultiselect: false, duration: 72, @@ -230,11 +228,10 @@ describe("SlashCommand: uwc", () => { text: "Is this an Unwelcome Concept?", }, answers: [ - { text: "No, leave as is" }, - { text: "No, but can be improved by change to achievement" }, - { text: "Yes, demote" }, - { text: "Yes, but can be salvaged by change to achievement" }, - { text: "Need further discussion" }, + { text: "Yes, demote" }, + { text: "No, leave as is" }, + { text: "No, transfer" }, + { text: "Need further discussion" }, ], allowMultiselect: false, duration: 72, @@ -296,11 +293,10 @@ describe("SlashCommand: uwc", () => { text: "Is this an Unwelcome Concept?", }, answers: [ - { text: "No, leave as is" }, - { text: "No, but can be improved by change to achievement" }, - { text: "Yes, demote" }, - { text: "Yes, but can be salvaged by change to achievement" }, - { text: "Need further discussion" }, + { text: "Yes, demote" }, + { text: "No, leave as is" }, + { text: "No, transfer" }, + { text: "Need further discussion" }, ], allowMultiselect: false, duration: 72, // 3 days in hours @@ -333,7 +329,7 @@ describe("SlashCommand: uwc", () => { expect(callArgs.poll.allowMultiselect).toBe(false); }); - it("creates a poll with exactly 5 answer options", async () => { + it("creates a poll with exactly 4 answer options", async () => { // ARRANGE const member = createMockGuildMember({ roles: { @@ -354,7 +350,7 @@ describe("SlashCommand: uwc", () => { // ASSERT const callArgs = (interaction.reply as any).mock.calls[0][0]; - expect(callArgs.poll.answers).toHaveLength(5); + expect(callArgs.poll.answers).toHaveLength(4); }); }); diff --git a/src/slash-commands/uwc.command.ts b/src/slash-commands/uwc.command.ts index 76ad328..dfddc22 100644 --- a/src/slash-commands/uwc.command.ts +++ b/src/slash-commands/uwc.command.ts @@ -60,10 +60,9 @@ const uwcSlashCommand: SlashCommand = { text: "Is this an Unwelcome Concept?", }, answers: [ - { text: "No, leave as is" }, - { text: "No, but can be improved by change to achievement" }, { text: "Yes, demote" }, - { text: "Yes, but can be salvaged by change to achievement" }, + { text: "No, leave as is" }, + { text: "No, transfer" }, { text: "Need further discussion" }, ], allowMultiselect: false, From c6606389db6faa4d9bd585ea8950125286bcb6b8 Mon Sep 17 00:00:00 2001 From: kiwitaco Date: Fri, 12 Jun 2026 16:11:03 -0400 Subject: [PATCH 2/2] Verification --- AGENTS.md | 2 +- src/slash-commands/uwc.command.test.ts | 32 +++++++++++++------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 681311e..ceb2b98 120000 --- a/AGENTS.md +++ b/AGENTS.md @@ -1 +1 @@ -CLAUDE.md \ No newline at end of file +CLAUDE.md diff --git a/src/slash-commands/uwc.command.test.ts b/src/slash-commands/uwc.command.test.ts index 175b06d..5a278cb 100644 --- a/src/slash-commands/uwc.command.test.ts +++ b/src/slash-commands/uwc.command.test.ts @@ -97,10 +97,10 @@ describe("SlashCommand: uwc", () => { text: "Is this an Unwelcome Concept?", }, answers: [ - { text: "Yes, demote" }, - { text: "No, leave as is" }, - { text: "No, transfer" }, - { text: "Need further discussion" }, + { text: "Yes, demote" }, + { text: "No, leave as is" }, + { text: "No, transfer" }, + { text: "Need further discussion" }, ], allowMultiselect: false, duration: 72, @@ -187,10 +187,10 @@ describe("SlashCommand: uwc", () => { text: "Is this an Unwelcome Concept?", }, answers: [ - { text: "Yes, demote" }, - { text: "No, leave as is" }, - { text: "No, transfer" }, - { text: "Need further discussion" }, + { text: "Yes, demote" }, + { text: "No, leave as is" }, + { text: "No, transfer" }, + { text: "Need further discussion" }, ], allowMultiselect: false, duration: 72, @@ -228,10 +228,10 @@ describe("SlashCommand: uwc", () => { text: "Is this an Unwelcome Concept?", }, answers: [ - { text: "Yes, demote" }, - { text: "No, leave as is" }, - { text: "No, transfer" }, - { text: "Need further discussion" }, + { text: "Yes, demote" }, + { text: "No, leave as is" }, + { text: "No, transfer" }, + { text: "Need further discussion" }, ], allowMultiselect: false, duration: 72, @@ -293,10 +293,10 @@ describe("SlashCommand: uwc", () => { text: "Is this an Unwelcome Concept?", }, answers: [ - { text: "Yes, demote" }, - { text: "No, leave as is" }, - { text: "No, transfer" }, - { text: "Need further discussion" }, + { text: "Yes, demote" }, + { text: "No, leave as is" }, + { text: "No, transfer" }, + { text: "Need further discussion" }, ], allowMultiselect: false, duration: 72, // 3 days in hours