diff options
Diffstat (limited to 'bettereveryloop.php')
-rw-r--r-- | bettereveryloop.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/bettereveryloop.php b/bettereveryloop.php new file mode 100644 index 0000000..da8c343 --- /dev/null +++ b/bettereveryloop.php @@ -0,0 +1,14 @@ +#!/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 +?> |