blob: 9dbb0ebc0b141867b818cbaf21265cef346a880a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/usr/bin/env php
<?php
// how to write ugly code
if ($argc != 4 && $argc != 5 )
exit ($argv[0]." username password subreddit link" );
require_once ("main.php" );
$o = new oldredditClient( );
$o-> setusername ($argv[1] );
$o-> setpassword ($argv[2] );
while (1 ){
$o-> setflair ($argv[3] );
if ($argc == 5 )
$o-> setflair ($argv[3], null, null, $argv[4] );
sleep (60 );
}
// reddit is max 30 requests per minute tho
?>
|