summaryrefslogtreecommitdiffstats
path: root/bettereveryloop.php
diff options
context:
space:
mode:
authorAnton L. Šijanec <sijanecantonluka@gmail.com>2020-04-10 18:07:04 +0200
committerAnton L. Šijanec <sijanecantonluka@gmail.com>2020-04-10 18:07:04 +0200
commite15988c1c61e517ba7e515647b601d0c31e571e1 (patch)
tree8a46251a7f188dff0a9fd49c7c8770dc4dc4d201 /bettereveryloop.php
downloadoldredditclient-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.php14
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
+?>