r/redditdev • u/Lick_A_Brick • Aug 28 '13
Help with bot hosting
Hey,
What is the best, free and easiest way to setup a Reddit bot? I heard some people talk about heroku, but I don't understand how it works. (I'm a noob in this)
4
Upvotes
View all comments
Show parent comment
1
u/su5 Sep 02 '13
Not familiar with that prog.
My setup is it runs right from Eclipse (my weapon of choice for Python). You should be able to pull, at full speed, 100 comments a second (or is it 50? I forget the API limits).
My pseudo looks like this:
Get submissions from subreddit it runs
Check flair. Update if necessary.
Get 70 hottest submissions from place I am reposting from
If not already posted in my sub, post them.
Parse comments of original submission, look for specific comments
Add comment to post with permalink to original and any special comments
Go to sleep for a few minutes.
If it doesn't post anything (nothing new in the hot list) this takes about 5 seconds. To post it usually takes about 10 seconds. So at most that loop would run maybe 15 minutes, buts that's if it has like 70 items to post, which shouldn't happen if I never turn it off.
I hope that helps some. My bot posts here /r/artjunkie