SkillHub

twitter-listen-comment

v0.1.2

Monitor one or more Twitter/X usernames via the 6551 API, generate a short humorous reply with `openclaw agent --json`, and submit the reply through an already logged-in Chrome X session. Use when creating or operating a reusable Twitter auto-listen-and-comment workflow, especially when you need: (1...

Sourced from ClawHub, Authored by yugulugulu

Installation

Please help me install the skill `twitter-listen-comment` from SkillHub official store. npx skills add yugulugulu/twitter-listen-comment

Set up the skill as a reusable local automation package.

Files

  • Main script: scripts/twitter_listen_comment.py
  • Start script: scripts/run.sh
  • Config template: references/config.example.json
  • Config notes: references/config.md

Prepare config

Read references/config.md and create references/config.json from references/config.example.json before running.

Run

Use one of these:

python3 scripts/twitter_listen_comment.py --config references/config.json --once
sh scripts/run.sh references/config.json

Requirements

  • Export TWITTER_TOKEN
  • Ensure openclaw CLI is available in PATH, or set OPENCLAW_BIN
  • Keep Chrome logged into X
  • Keep the OpenClaw Chrome Relay attached on the tab when browser automation is required

Behavior

  • Poll watched usernames on an interval
  • Ignore tweets older than maxTweetAgeSeconds
  • Send a notice when a new eligible tweet is detected
  • Generate a reply with openclaw agent --json
  • Submit the comment with openclaw agent --json
  • Send a second notice when comment submission succeeds
  • Mark the tweet as processed only after submission succeeds

Limits

  • Success means comment submission succeeded, not deep post-verification
  • Browser automation depends on Chrome Relay availability and X page state
  • Notices route to the configured notifyChannel / notifyTarget