yt-dlp headless capture (15dk segmentleme), ses peak + chat velocity sinyal tespiti, OpenAI Whisper STT (kelime zaman damgalı), BullMQ/Redis/Postgres altyapısı ve kanal durumu + transkript kütüphanesi gösteren Next.js panel. LLM virality skorlama, render/crop/altyazı ve multi-platform dağıtım bu fazın kapsamı dışında. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
24 lines
579 B
TypeScript
24 lines
579 B
TypeScript
import { prisma } from "../src";
|
|
|
|
async function main() {
|
|
const channelId = process.env.SEED_CHANNEL_ID ?? "UCXXXXXXXXXXXXXXXXXXXXXX";
|
|
const channel = await prisma.channel.upsert({
|
|
where: { channelId },
|
|
update: {},
|
|
create: {
|
|
name: process.env.SEED_CHANNEL_NAME ?? "Test Kanal",
|
|
youtubeHandle: process.env.SEED_CHANNEL_HANDLE ?? "@test",
|
|
channelId,
|
|
isActive: true,
|
|
},
|
|
});
|
|
console.log("Seeded channel:", channel);
|
|
}
|
|
|
|
main()
|
|
.catch((err) => {
|
|
console.error(err);
|
|
process.exitCode = 1;
|
|
})
|
|
.finally(() => process.exit());
|