r/madeinpython • u/coryphoenixxx • Aug 16 '21
I made a telegram bot for reading xkcd comics!)
Hey guys!
I finally finished my first independent personal project. I hope someone needs it)))
I will be glad if you try it and give me feedback (about code too).
It will be great if you star repository (if you think the code deserve it), because I think it can help me find my first programmer job!)
Bot link: https://t.me/telexkcdbot
2
2
u/pablo007a Aug 24 '21
Really impressed - well done! I'm not just referring to the content but also your UI and the different features you've built in.
I notice also that your bot's being hosted on Heroku. Are you using a free web dyno and if so, what are you doing to avoid your bot being put to sleep by this service?
1
u/coryphoenixxx Aug 25 '21 edited Aug 25 '21
Thanks!
Yes, free dyno. I use Postgres addon for data storage (10000 rows for free) and New Relic addon for pinging my app every minute that prevent falling asleep. Also I added my card credentials - it's gave +350 uptime hours for dyno (1000 hours overall). But rarely (1-2 times per week) dyno still goes sleep (heroku guarantees 99% uptime), but wakes up again fast and I doesn't lose any data.
1
u/pablo007a Aug 26 '21
One further question related to setting up a Ping Monitor with New Relic. I provided my application's URL (e.g. https://appname.herokuapp.com/) to that Ping Monitor, but the pings fail with an HTTP 404 error (as does clicking the "Open app" button from the Heroku Dashboard). Have I missed a step? Thanks in advance for any assistance you can provide.
1
u/coryphoenixxx Aug 27 '21 edited Aug 28 '21
All fine, the app hasn't html page and responses nothing.
2
2
1
Aug 17 '21
[removed] — view removed comment
1
u/coryphoenixxx Aug 17 '21
Sorry but unable to open it.
You need telegram messanger https://telegram.org/
3
u/[deleted] Aug 16 '21 edited Aug 16 '21
nice work. what about adding 'prev' 'random' 'next' buttons so we don't have to type