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)
|
.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> => {
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue