TheLisaRei / robotrei

my beautiful python robot child - PythonTwitchBotFramework based python bot for twitch for LisaRei's channel
9 stars 6 forks source link

Extended the !time command to be able to look up at least a few citie… #28

Closed Phaqui closed 3 years ago

Phaqui commented 3 years ago

This adds to (or maybe even closes?) issue #25.

A few things to note: It won't be able to look up a lot of cities, just a few "defined" ones. To the extend of my knowledge, by default it should at least be able to find the ones listed here: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

So, stuff like "new york", "seoul" or "oslo" works, but most cities do not. You would have to find some database (or api) to look up city/town names to timezones. See also the comment I wrote in the code.