← back to Dear Bubbe Nextjs
archived/tests/test-simple-post.js
20 lines
const { postTweet } = require('./lib/twitter-v2-official');
async function testSimplePost() {
const tweet = "Bubbe's wisdom: If he wanted to talk to you, he would. You're not a priority, you're a chore on his to-do list! Find someone who can't wait to hear from you! #BubbeAI #Dating #Relationships Visit Bubbe.AI";
console.log('Testing simple post...');
console.log('Length:', tweet.length);
console.log('Tweet:', tweet);
const result = await postTweet(tweet);
if (result.success) {
console.log('✅ Posted!');
console.log('URL: https://x.com/DearBubbe/status/' + result.tweetId);
} else {
console.log('❌ Failed:', result.error);
}
}
testSimplePost();