Twitter autoresponder bot
✓ Published0🌍 Public
Aabehmiel
Last edited Jun 17, 2013
Created on Jul 18, 2017
This example shows a PHP Twitter autoresponder bot that monitors the Twitter Search API for specific keywords and automatically replies to matching tweets. The code uses the PECL OAuth extension to authenticate with Twitter API 1.1, performing searches for configured terms like "over 9000" and posting responses via the statuses/update endpoint. It tracks the last replied-to tweet ID in a local file to avoid duplicates, verifies account credentials, and includes command-line OAuth authorization for initial setup.
AI-generated description