fuerbringer / tldr-telegram

:robot: :books: Telegram chatbot frontend for tldr-pages.
https://t.me/tldr_pages_bot
GNU Affero General Public License v3.0
8 stars 2 forks source link

Bot command: platforms #3

Open fuerbringer opened 6 years ago

fuerbringer commented 6 years ago

It'd be good to have a bot command to list the available platforms (at least while theres no platform autodetection).

Perhaps something /tldr-platforms. Octokit might be able to handle that using repos.getContent. It's basically a matter of listing the folders on tldr-pages/tldr/pages/*

This too is something that should be cached, maybe even more than the current 3600 seconds for tldr pages.

Hoi15A commented 6 years ago

Actually you may wanna consider adding that info into the /start greeting aswell now that I think of it.

fuerbringer commented 6 years ago

@Hoi15A Nice idea, the logic will be needed either way.