this post was submitted on 03 Jul 2023
33 points (97.1% liked)
Hockey
2431 readers
42 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 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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!
Thanks for creating something like this!. I have saved this post and would like to get it working when I have some time on the Leafs community!
One last reply here. I just found a breaking bug in 1.5.3 release, it's patched and updated on pypi/the docker build instructions now, as a heads up. I'll be making one more round of posts just before pre-season so everyone has the link to the github for any issues before the regular season starts as well. Once that starts I'd much rather be watching hockey than poring over ~800 lines of code to figure out what the heck I did wrong or trying to quickly add features!
It's probably best to start it near the pre-season in it's current version as I haven't thought of a good way to only spit out the weekly standings/team stats during the season as a heads up.
The docker (or pip) should only take 5 ish minutes to get up and running as long as you have your account and password ready to go. The config script only needs: username/password(only stores the login cookie, not the password itself), server address, team (will list team numbers), community to post in, and if the account is a mod for pinned posts/maybe sidebar updating if I can get it in before the season starts. Once it has those it will automate grabbing the schedule, and posting when you start the app with 0 need for anything from you going forward.
Oh okay, I misunderstood. So it's a bot for creating game day threads.
Yeah that's awesome. I'm not sure how difficult sidebar editing would be but some standings/schedule/stats stuff would be cool there. But you will be putting those in the posts anyways.
This api library is possibly the coolest library I've every used with its simplicity, so the answer is not too hard, as long as I can put a marker like "***" in there to split by so I can scrape the side bar that we'd want to keep. The stats/standings could make the side bar way too long (imo), but the schedule would be perfect for the side bar. I've opened an issue on the projects github for this with the idea of putting the current week's schedule up.
Actually in reference to standings, we could potentially put just the teams conference in there without making the sidebar several pages long as well. Probably just format it to run at the bottom of the sidebar as a schedule table then conference standings table.
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!
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.
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!
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.