u/notifier-bot info
######How to use the bot:
Click on the link in the bot's comment. Ideally, this should take you to a screen like this where the message subject already contains the post's ID. If it has been correctly filled in, just click 'send' and the bot will send you a message once it detects that the OP marked their post solved. Some apps/browsers don't handle URL parameters correctly so the subject might not be filled in. If it hasn't been filled in, try using another app/browser. Or manually fill in the subject field with the six-character post ID which can be found here or here. If the subject and body look like they have been filled in correctly but the 'send' button is disabled, you might need to type something in the message body first (any random character should work). The bot will send you a confirmation message if you did it correctly or an error message if something went wrong.
######Disclaimer:
The bot works 99% of the time, but it occasionally might not work as intended if something unexpected happens (reddit goes down, an OP doesn't mark their post 'solved' correctly, a post is deleted/removed, etc). Furthermore, the bot relies on reddit, heroku, and AWS to operate, which often have errors of their own (you can check their statuses and outage histories by clicking on those links). If you have any questions/comments/concerns, feel free to PM u/adityapstar (the bot's inbox is used for subscriptions only).
Posted Aug 31, 2019, 9:45 PM UTC
this bot is cool! u/adityapstar as a developer im looking into free bot hosting. what do you use aws for and are you on a free heroku thing? how to prevent it cooling down?
AWS is for the redis database I'm using to keep track of subscriptions, and yes, I'm on the free Heroku plan which gives you 1000 dyno hours per month. I'm not sure what you're referring to by "cooling down", but if it's this it seems like all you can do is handle exceptions properly to prevent your dyno from crashing or use a Private Space
oh, thanks! i meant cooling down as in Heroku shuts down the dyno when nobody is visiting your site right? so youre keeping it alive somehow. maybe thats not such a concern if you have a highly active reddit process people are pinging you all the time
why redis over just keeping it in a db in Heroku? like with a mongo addon? this is just me being unfamiliar with Redis maybe, but it would seem that keeping it to one ecosystem might be simpler to manage and have fewer sources of errors? idk haha but thank you for answering these nooby questions, ive been learning to code for 2 years but cant figure out the why behind how some people make these architecture choices
That's true if it's a web dyno, worker dynos can run 24/7.
It's Heroku redis, which is a Heroku add-on that's installed on an AWS EC2 server I believe. I chose redis because its key-value model seemed appropriate for storing users and their corresponding subscriptions.
ohhh i get it now. dammit! so much i dont know. thank you! (my other account mods a large sub, and ive always wanted to make a bot to do moderator actions)
thanks!