add change voice option for supertonic
This commit is contained in:
parent
34e74b8667
commit
6380daa4a4
2 changed files with 6 additions and 3 deletions
|
|
@ -14,7 +14,8 @@ export default defineCommand(
|
|||
.setRequired(true)
|
||||
.addChoices(
|
||||
{ name: "TypeCast", value: "TypeCast" },
|
||||
{ name: "Papago", value: "Papago" }
|
||||
{ name: "Papago", value: "Papago" },
|
||||
{ name: "Supertonic", value: "Supertonic" }
|
||||
)
|
||||
),
|
||||
async (interaction: ChatInputCommandInteraction): Promise<any> => {
|
||||
|
|
|
|||
|
|
@ -21,9 +21,11 @@ export default defineEvent("messageCreate", async (message) => {
|
|||
let content = message.cleanContent;
|
||||
let voice: Voice | null = null
|
||||
if (content.startsWith("$t ")) {
|
||||
voice = "TypeCast"
|
||||
voice = "TypeCast";
|
||||
} else if (content.startsWith("$p ")) {
|
||||
voice = "Papago"
|
||||
voice = "Papago";
|
||||
} else if (content.startsWith("$s ")) {
|
||||
voice = "Supertonic";
|
||||
} else if (content.match(/^\$\s/)) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue