this post was submitted on 07 Oct 2023
9 points (90.9% liked)

Hockey

2931 readers
7 users here now

Rules

List of Team-Specific Communities:

Metropolitan Division

Atlantic Division

Central Division

Pacific Division

founded 4 years ago
MODERATORS
 
Match up Time
Vegas Golden Knights VGK 7 - Los Angeles Kings LAK 4 Final
Anaheim Ducks ANA 1 - Arizona Coyotes ARI 7 Final
Dallas Stars DAL 0 - Minnesota Wild MIN 4 Final
Tampa Bay Lightning TBL 4 - Florida Panthers FLA 2 Final
Columbus Blue Jackets CBJ 4 - Washington Capitals WSH 2 Final
Montréal Canadiens MTL 6 - Ottawa Senators OTT 4 Final
Toronto Maple Leafs TOR 3 - Detroit Red Wings DET 4 Final
Chicago Blackhawks CHI 3 - St. Louis Blues STL 5 Final

 

I am open source! Report issues, contribute, and fund me on my GitHub page!

you are viewing a single comment's thread
view the rest of the comments
[–] dandroid@dandroid.app 4 points 2 years ago (2 children)

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.

[–] dandroid@dandroid.app 2 points 2 years ago

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.

[–] christian@lemmy.ml 2 points 2 years ago (1 children)
[–] dandroid@dandroid.app 1 points 2 years ago

Thanks! I think it turned out really nice.