← back to Dear Bubbe Nextjs
scripts/generate-test-conversations.js
122 lines
#!/usr/bin/env node
const fs = require('fs').promises;
const path = require('path');
const TEST_CONVERSATIONS = [
{
user: "I just started dating someone new",
bubbe: "Finally! At YOUR age I thought you'd die alone. How much do they make? Are they Jewish at least?"
},
{
user: "The weather is nice today",
bubbe: "Nice? You call 72 degrees nice? In my day we didn't kvetch about weather. So when are you getting married?"
},
{
user: "I got a promotion at work",
bubbe: "A promotion? Mazel tov! It's about time! Your cousin got promoted THREE times already. How much more money?"
},
{
user: "Should I buy or rent?",
bubbe: "RENT? You're throwing money away like a schmuck! Buy already! What, you can't afford it with that 'promotion'?"
},
{
user: "I'm thinking about getting a dog",
bubbe: "A dog? What you need is CHILDREN, not a dog! Your biological clock is ticking louder than my kitchen timer!"
},
{
user: "What should I make for dinner?",
bubbe: "You can't figure out dinner? No wonder you're single! Make a brisket like a normal person. You DO know how to cook, right?"
},
{
user: "I'm tired today",
bubbe: "Tired? From WHAT? Sitting at a computer all day? Try raising 5 kids with no dishwasher! So when's the wedding?"
},
{
user: "My back hurts",
bubbe: "Your back hurts because you slouch like a question mark! Stand up straight! And lose some weight while you're at it!"
},
{
user: "I'm going on vacation",
bubbe: "Vacation? Must be nice to have money to waste! Your cousin saves every penny. Where are you going, Vegas to gamble away your inheritance?"
},
{
user: "I bought new shoes",
bubbe: "New shoes? How much did THOSE cost? You could feed a family for a week! Do you even have money in savings?"
},
{
user: "Traffic was terrible today",
bubbe: "Traffic, schmaffic! In my day we WALKED everywhere, uphill both ways! Speaking of walking, when are you walking down the aisle?"
},
{
user: "I'm learning to cook",
bubbe: "LEARNING? At your age you should be teaching! Your mother failed you. How will you feed a family? IF you ever have one!"
},
{
user: "I joined a gym",
bubbe: "A gym? Finally! Maybe now you'll find someone. Though personality matters too, and yours needs work. How much are you paying?"
},
{
user: "My boss is annoying",
bubbe: "Your boss? YOU'RE probably the annoying one! Be grateful you HAVE a job. Your cousin owns their own business!"
},
{
user: "I'm thinking of moving",
bubbe: "Moving? Running away from your problems again? You can't even commit to an apartment. No wonder you're not married!"
},
{
user: "What's for breakfast?",
bubbe: "Breakfast? It's noon, you schlub! No wonder you're unsuccessful. Early bird gets the worm! And the spouse!"
},
{
user: "I need new clothes",
bubbe: "New clothes won't fix your personality, bubbeleh. Save your money for a wedding. IF anyone will have you!"
},
{
user: "The game was exciting",
bubbe: "Exciting? Watching millionaires throw a ball? Your life should be exciting! When are you having kids?"
},
{
user: "I'm stressed about work",
bubbe: "Stressed? Try raising kids during the Depression! You millennials are soft. Maybe that's why you're still single?"
},
{
user: "Should I text them back?",
bubbe: "Text? CALL them like a mensch! No wonder you're alone. In my day we had REAL conversations! And got MARRIED!"
}
];
async function generateMemoryFiles() {
const memDir = path.join(__dirname, '..', 'user-memories');
await fs.mkdir(memDir, { recursive: true });
console.log(`Creating ${TEST_CONVERSATIONS.length} test conversation files...`);
for (let i = 0; i < TEST_CONVERSATIONS.length; i++) {
const conv = TEST_CONVERSATIONS[i];
const userId = `test_user_${i + 1}`;
const content = `# User Profile: ${userId}
## Recent Conversation
User: ${conv.user}
Bubbe: ${conv.bubbe}
## Topics Discussed
- Life advice
- Relationships
- Money
- Health
Generated at: ${new Date().toISOString()}
`;
const filename = path.join(memDir, `${userId}.md`);
await fs.writeFile(filename, content);
console.log(`Created: ${userId}.md`);
}
console.log(`✅ Generated ${TEST_CONVERSATIONS.length} test conversations for Twitter posting`);
}
generateMemoryFiles().catch(console.error);