add change voice option for supertonic

This commit is contained in:
kimpure 2026-05-19 16:05:45 +00:00
parent 34e74b8667
commit 6380daa4a4
No known key found for this signature in database
2 changed files with 6 additions and 3 deletions

View file

@ -14,7 +14,8 @@ export default defineCommand(
.setRequired(true) .setRequired(true)
.addChoices( .addChoices(
{ name: "TypeCast", value: "TypeCast" }, { name: "TypeCast", value: "TypeCast" },
{ name: "Papago", value: "Papago" } { name: "Papago", value: "Papago" },
{ name: "Supertonic", value: "Supertonic" }
) )
), ),
async (interaction: ChatInputCommandInteraction): Promise<any> => { async (interaction: ChatInputCommandInteraction): Promise<any> => {

View file

@ -21,9 +21,11 @@ export default defineEvent("messageCreate", async (message) => {
let content = message.cleanContent; let content = message.cleanContent;
let voice: Voice | null = null let voice: Voice | null = null
if (content.startsWith("$t ")) { if (content.startsWith("$t ")) {
voice = "TypeCast" voice = "TypeCast";
} else if (content.startsWith("$p ")) { } else if (content.startsWith("$p ")) {
voice = "Papago" voice = "Papago";
} else if (content.startsWith("$s ")) {
voice = "Supertonic";
} else if (content.match(/^\$\s/)) { } else if (content.match(/^\$\s/)) {
return; return;
} }