blob: d3715f11ce5d327dadcae4d7f4f71d2719da9fa6 (
plain) (
tree)
|
|
#!/usr/bin/env php
<?php
// how to write ugly code
if ($argc != 4 )
exit ($argv[0]." username password subreddit");
require_once ("main.php" );
$o = new oldredditClient( );
$o-> setusername ($argv[1] );
$o-> setpassword ($argv[2] );
while (1 ){
$o-> setflair ($argv[3] );
sleep (3 );
}
// reddit is max 30 requests per minute tho
?>
|