diff options
author | Anton L. Šijanec <sijanecantonluka@gmail.com> | 2020-04-10 18:07:04 +0200 |
---|---|---|
committer | Anton L. Šijanec <sijanecantonluka@gmail.com> | 2020-04-10 18:07:04 +0200 |
commit | e15988c1c61e517ba7e515647b601d0c31e571e1 (patch) | |
tree | 8a46251a7f188dff0a9fd49c7c8770dc4dc4d201 /bettereveryloop.php | |
download | oldredditclient-e15988c1c61e517ba7e515647b601d0c31e571e1.tar oldredditclient-e15988c1c61e517ba7e515647b601d0c31e571e1.tar.gz oldredditclient-e15988c1c61e517ba7e515647b601d0c31e571e1.tar.bz2 oldredditclient-e15988c1c61e517ba7e515647b601d0c31e571e1.tar.lz oldredditclient-e15988c1c61e517ba7e515647b601d0c31e571e1.tar.xz oldredditclient-e15988c1c61e517ba7e515647b601d0c31e571e1.tar.zst oldredditclient-e15988c1c61e517ba7e515647b601d0c31e571e1.zip |
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 +?> |