this post was submitted on 07 Oct 2023
9 points (90.9% liked)
Hockey
2931 readers
7 users here now
Rules
- No bigotry - including racism, sexism, ableism, homophobia, transphobia, or xenophobia.
- Be respectful, especially when disagreeing. Everyone should feel welcome here.
- No porn.
- No Ads / Spamming.
List of Team-Specific Communities:
Metropolitan Division
- Carolina Hurricanes
- Washington Capitals
- Columbus Blue Jackets
- New Jersey Devils
- New York Islanders
- New York Rangers
- Pittsburgh Penguins
- Philadelphia Flyers
Atlantic Division
- Toronto Maple Leafs
- Montreal Canadiens
- Boston Bruins
- Ottawa Senators
- Tampa Bay Lightning
- Buffalo Sabres
- Detroit Red Wings
- Florida Panthers
Central Division
- Chicago Blackhawks
- Winnipeg Jets
- Nashville Predators
- Arizona Coyotes
- Dallas Stars
- St Louis Blues
- Minnesota Wild
- Colorado Avalanche
Pacific Division
- Los Angeles Kings
- Edmonton Oilers
- Calgary Flames
- Anaheim Ducks
- Vancouver Canucks
- San Jose Sharks
- Vegas Golden Knights
- Seattle Kraken
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I am very excited to be done with the Daily Discussion Thread feature. It was quite a bit more work than I was expecting, but I think it was necessary to reduce the number of posts made by the bot.
Here's how it works:
Once a day at midnight GMT-12 (8 AM EDT/7 AM EST), a daily post like this one is made. In the body, it will have all the start times of the game. After they start, it will show the game clock and the score of the games. One hour before each game starts, the bot will leave a comment in this thread with all the game details. Folks will be able to discuss the games under the comment with the game details.
This feature was designed to be configurable, so if we grow and want to go back to the old way, it will be an easy flip of a switch in a config file. Currently I have it configured so preseason and regular season games are posted in comments to the daily post, and allstar and postseason games get their own post.
As usual all posts and comments will updated every 30 seconds with up to date stats, game clock, goals, etc.
Oh, something super weird I learned while doing this. So, every time zone has a couple different ways of writing it. One pretty standard way is doing something like "US/Eastern" or "Canada/Atlantic". This format is nice because it automatically shifts between daylight saving depending on the date in the datetime. So "US/Eastern" will map to GMT-4 in the summer months, and it will map to GMT-5 in the winter months. And for time zones that don't have a country associated with them, they use "Etc/GMT-X". These timezones map to GMT+X. YES THEY SWITCH THE +/-. So the timezone that maps to GMT-12, it is Etc/GMT+12. And the timezone that maps to GMT+12 is Etc/GMT-12.
WTF WERE THEY THINKING???
Anyway, rant over.
Nice work.
Thanks! I think it turned out really nice.