get file from https://xanthophyll.xyz/files/rdrama.py (bravo admins for not allowing text uploads)
get API token from https://rdrama.net/settings/apps
add token to your environment as RDRAMA_API_TOKEN (or add it to your rdrama.py directly)
run the file (it's legit I promise)
enjoy the company of your favourite online intellectuals
Update:
can now reply within the app, uses whatever your $EDITOR is set to
reply API still not workingreplies aren't formatted correctly, will fix ASAPreplies working
Jump in the discussion.
No email address required.
OK, why are you using
literal_eval()
as cache mechanism? Injecting shit into AST is a bit strange, can't just pickle it (I know unmarshaling is also unsafe, but still)One more thing,
threads = response.json()['data']
is gonna blow sooner or later, gettingHTTP 200
does not inform you whatever JSON returned correctly formatted. I did that way too many times. A check/redo would do some good here.Jump in the discussion.
No email address required.
literal_eval
is only for testing, I have saved responses from back when the API was working fully and gave comment trees.And yeah it needs more error checking, tbh everything about it is beyond hacky. But hey, it werks.
Jump in the discussion.
No email address required.
More options
Context
More options
Context