$shortoptions = 'fi::a';
$longoptions = array('id::', 'foreground', 'all');
-$helptext = <<<END_OF_XMPP_HELP
+$helptext = <<<END_OF_TWITTERDAEMON_HELP
Daemon script for receiving new notices from Twitter users.
-i --id Identity (default none)
(requires Stomp queue handler, status_network setup)
-f --foreground Stay in the foreground (default background)
-END_OF_XMPP_HELP;
+END_OF_TWITTERDAEMON_HELP;
require_once INSTALLDIR.'/scripts/commandline.inc';
-require_once INSTALLDIR . '/lib/jabber.php';
-
class TwitterDaemon extends SpawningDaemon
{
protected $allsites = false;
const USERS_PER_STREAM = 100;
const STREAMS_PER_SECOND = 20;
- protected $twitterStreams;
- protected $twitterUsers;
+ protected $streams;
+ protected $users;
/**
* Pull the site's active Twitter-importing users and start spawning