The weeb for the next gen discord boat - Wamellow
wamellow.com
bot
discord
1export const actor = JSON.parse(Buffer.from(process.env.NEXT_PUBLIC_VOICES_BASE64!, "base64").toString()) as Record<string, [string, string, string]>;
2export const voices = Object.keys(actor);
3
4export function getVoices(voice?: keyof typeof actor): string[] {
5 if (!voice) {
6 const list: string[] = [];
7 for (const key of voices) list.push(`${actor[key][0]} (${actor[key][1]}) - ${actor[key][2]}`);
8 return list;
9 }
10
11 return [`${actor[voice][0]} (${actor[voice][1]}) - ${actor[voice][2]}`];
12}