added subreddit not existing error handling and choosing from hot
added args checking
Fixed out of index bug
You can also use your local clone with
A errbot plugin to get a random post from a subreddit.
I usually use sr.ht to develop. Please send patches to my email (email@example.com).