this post was submitted on 03 Jul 2023
33 points (97.1% liked)

Hockey

2431 readers
42 users here now

Rules

List of Team-Specific Communities:

Metropolitan Division

Atlantic Division

Central Division

Pacific Division

founded 3 years ago
MODERATORS
 

cross-posted from: https://midwest.social/post/961900

Good morning hockey fans! It's still a good bit before pre-season, but I've been working on a bot for the flyers community and would like some feedback on what everyone would find useful. Based on tests it should be ready to go once pre-season rolls around. It pull stats/standings /live scores at the moment. If there's other features (or more information you would like to see on the existing ones), please let me know so I can make sure to have it finished before the start of the season!

I'd also love feedback from any community mods that want to use the bot for any way to make it easier for you to do so! Right now it can be installed through python's pip command or through docker

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 year ago (1 children)

It creates posts for all of these, and for the live game scores pins to the community (if account is a mod) while the game is live. The side bar could be fun, but it would be hard to do as editing the side bar would wipe whatever was there beforehand, I'd have to look at how to scrape it. I'd also need to see if the sidebar supports tables and how they would look. Were you thinking standings/schedule on the sidebar?

Time and date for the next game is a great idea!

[–] [email protected] 3 points 1 year ago (2 children)

Game day threads are always a great idea, so thanks for looking into it! I know on the Avs subreddit there were streamable links posted for goals (and a few other things) but I assume those were put in by hand by mods. As long as the bot can work in tandem with those kind of mod changes, that would be great. Of course, if I'm missing something and it's easy for the bot to add streamable links instead, that would be cleaner.

[–] [email protected] 3 points 1 year ago

Now that's a fun idea! the bot wipes the current post body each refresh in its current model, so mods commenting a say pinned comment and updating that would work but not the post body itself. By streamable link, are you referring to a link to video of the goals scored?

I'll take a look through the avs subreddit later today to see if I can find the exact link they're using, but I know the nhl api I'm requesting from doesn't send those. If I can find an api to pull from I will absolutely add this as well!

[–] [email protected] 3 points 1 year ago

Well this is actually a fun update. the nhl api might actually return goal links on a different part of the api! I'll dig around and see what it returns, it spit out a 30 page brick so gonna take some time there lol.