Security warning — review recommended

ClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.

Twitter Listen Comment

Set up the skill as a reusable local automation package.

Audits

Warn

Install

openclaw skills install 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