Skip to content

chore: add tweet posting script for autonomous social updates#11

Merged
zacharias-ona merged 1 commit intomainfrom
chore/tweet-script
Apr 14, 2026
Merged

chore: add tweet posting script for autonomous social updates#11
zacharias-ona merged 1 commit intomainfrom
chore/tweet-script

Conversation

@zacharias-ona
Copy link
Copy Markdown
Collaborator

Adds scripts/tweet.ts so the Tweet Drafter automation can post to
@swfactory_dev autonomously.

What

  • scripts/tweet.ts — CLI script that posts a tweet via Twitter API v2 with OAuth 1.0a
  • twitter-api-v2 added as a dev dependency
  • Usage: npx tsx scripts/tweet.ts "Your tweet text"
  • Validates length (≤280 chars) and required env vars before posting

Env vars required

  • TWITTER_CONSUMER_KEY
  • TWITTER_SECRET_KEY
  • TWITTER_ACCESS_TOKEN
  • TWITTER_ACCESS_TOKEN_SECRET

All four are already configured as project secrets.

Tested

Live-tested — successfully posted: https://x.com/swfactory_dev/status/2044145900646256803

Adds scripts/tweet.ts — posts to @swfactory_dev via Twitter API v2
with OAuth 1.0a. Called by the Tweet Drafter automation as:
  npx tsx scripts/tweet.ts "<tweet text>"

Requires TWITTER_CONSUMER_KEY, TWITTER_SECRET_KEY,
TWITTER_ACCESS_TOKEN, TWITTER_ACCESS_TOKEN_SECRET env vars.

Co-authored-by: Ona <no-reply@ona.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
memo Ready Ready Preview, Comment Apr 14, 2026 8:09pm

Request Review

@zacharias-ona zacharias-ona merged commit eced8ef into main Apr 14, 2026
5 checks passed
@zacharias-ona zacharias-ona deleted the chore/tweet-script branch April 14, 2026 20:11
@zacharias-ona
Copy link
Copy Markdown
Collaborator Author

✅ UI verification skipped — no UI files changed (src/components/*, src/app/**/page.tsx, src/app/**/layout.tsx).

@zacharias-ona
Copy link
Copy Markdown
Collaborator Author

⏭️ Post-merge verification skipped — chore: PRs don't affect the live app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant