r/botrequests • u/ingeniousclown • Jul 05 '14
[REQUEST] Small bot with small front-end form to allow users to post comments
Basic idea: I have an account that I want a few users to be able to use at the same time, but I don't want to hand out the password to the account.
I want the "bot" to log in and post a comment given a comment's permalink (from which the fullname can be extracted, right?), and two different fields for the text. These three fields can be populated by a small front-end with a form consisting of an input box for each.
I attempted to do this myself by using some rudimentary javascript (I'm not a JS or front-end programmer, nor do I have any real knowledge of the web technology stack), but according to my understanding of what is in this link, reddit's API doesn't work too well with JS. After this, I'm at a loss about how to proceed.
So I gave in and here I am asking for assistance.
1
u/GoldenSights github.com/voussoir/reddit Jul 05 '14
I'm not available to do any programming today, but perhaps you should do something like this instead:
This keeps the bot's password hidden from users, but also manages the posting. I would be up for this challenge but it will be a day or two before I have anything.
2
u/Tjstretchalot Jul 05 '14
So you know, the username+password is going to have to be stored somewhere, and anyone who is proficient in Googling can learn how to use a hex editor to find it given the software. To fix this you need them to connect to a server using a "safe" login, then tell the server to post to reddit with the "restricted" account. That is somewhat complicated and takes a while to debug.