d
This commit is contained in:
1 parent
04f5d6ec75
commit
89fc33d954
3 files changed
+40
-7
No files matched your search
+2
-2
@@ -9,7 +9,7 @@ import {
|
||||
} from 'discord.js';
|
||||
import { VoiceConnectionStatus, entersState } from '@discordjs/voice';
|
||||
import { Recording } from './recorder.js';
|
||||
import { MODEL, generateNotes } from './gemini.js';
|
||||
import { FALLBACK_MODEL, MODEL, generateNotes } from './gemini.js';
|
||||
|
||||
for (const key of ['DISCORD_TOKEN', 'GEMINI_API_KEY', 'GEMINI_MODEL']) {
|
||||
if (!process.env[key]) throw new Error(`Falta la variable de entorno ${key}`);
|
||||
@@ -62,7 +62,7 @@ async function autoFinish(guildId: string, reason: string) {
|
||||
|
||||
client.once(Events.ClientReady, async (c) => {
|
||||
await c.application.commands.set(commands.map((cmd) => cmd.toJSON()));
|
||||
console.log(`ready as ${c.user.tag} | modelo: ${MODEL}`);
|
||||
console.log(`ready as ${c.user.tag} | modelo: ${MODEL} | respaldo: ${FALLBACK_MODEL ?? '(ninguno)'}`);
|
||||
});
|
||||
|
||||
client.on(Events.InteractionCreate, async (interaction) => {
|
||||
|
||||
Reference in new issue
Block a user