r/madeinpython • • 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

Source: https://github.com/coryphoenixxx/telexkcdbot

19 Upvotes

15 comments sorted by

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

1

u/coryphoenixxx Aug 17 '21

2

u/[deleted] Aug 17 '21

No... I realized they are already there. thanks for the response

1

u/coryphoenixxx Aug 17 '21

Ok) There is presentation video on github page if something is still not clear)

2

u/diego-castro Aug 16 '21

Really nice! Well done!

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

u/pablo007a Aug 27 '21

Phew! Thanks again!

1

u/coryphoenixxx Aug 27 '21

You welcome)

2

u/pablo007a Aug 25 '21

Great - Thanks so much for the info!

1

u/[deleted] 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/