Spyke
nba·NBAbyBarns

META: Introducing the NBA Game Day Bot

Edit: so looks like there was an issue in the daily transition and the bot went crazy spamming the same daily index post over & over 😞 we apologize for that, and we're already working on a fix

Edit 2: Fix is done and released, going to keep an eye on it in upcoming days


Hi everyone,

Happy to share that over the last days we have been working on a new Lemmy-native NBA Game Day Bot for this community, and today we activated it 🎉

Currently, our bot knows how to:

  • Create a Daily Discussion + Game Thread Index with a list of today's games, start date, status and links to the Game Thread & Post-Game Thread (when available).

  • Create a Daily Game Thread for every game starting 15min before game start, keeping overall score and quarterly breakdown by team updated every minute, and when the game ends it adds the final score to the title.

  • Create a Post Game Thread for every game that ends with a detailed breakdown of team & player statistics.

You can see a few examples for these below, check them out.

We would also love to hear your feedback and suggestions, so feel free to post suggestions here or PM the bot directly

We hope you enjoy it!

The mod team 🏀


A few NBA bot post examples:

View original on lemmy.world

We are living proof of that. We have the #1, #2, #3 most commented threads ever on kbin on m/MMA for our threads. People just show up.

7
lemmy.world

Is there a github for the bot. We are looking for something like it on /c/football and /c/mls

5

Yes, I'm working on open sourcing it, it's just pretty hack-y (I'm not a python expert...) and very NBA-specific but I'll ping you when I do!

6
IronRainreply
lemmy.world

Summer League threads are usually pretty low volume even on r/nba. Unfortunately, we missed the big-name free agency and trade deadlines to foster discussion, so the real foundation for this community will probably be opening week (pre-season is also low volume or a bunch of low-effort overreactions anyways).

13
lemmy.world

True. It also hurts that teams are protecting their top ten picks after a few games. I would have liked to see more Wembanyama minutes.

5

I hate the concept of resting your 20 year old draft picks. Some of these players - especially Wemby - need all the exposure and development they can get. That's why I loved Jabari Smith Jr's attitude about Summer League, and the fact that Max Christie has played every game so far!

2
Barnsreply
lemmy.world

Absolutely, I wanted to get it out before Summer League ends so we can find issues and get feedback from everyone, I fully expected the actual threads to be pretty quite

4

Thanks to everyone who put this together. I’m sure it was a lot of hard work, but I think I can speak for the majority of the community that this is something that is extremely valuable to fostering growth over time.

12
lemmy.ca

There must be an incorrect loop condition as the bot is currently spamming /c/nba every 2 mins with a new pinned post.

Please fix and clean out the old posts!!

11
v_krishnareply
lemmy.ml

It stopped doing it but please delete the posts it makes a bunch of sort views unusable if you are subscribed to this community

4

Awesome, hope to see lemmy-based NBA communities become more like /r/NBA. This definitely helps build and starts more conversation everyday

6

not yet but it's high on my list so stay tuned. I first need to clean out all the summer league hacks I made since the nba api library I use (https://github.com/swar/nba_api) didn't support it... then a bit of tidying up and we should be good to go.

4
lemmy.world

Wow this is nice! Can the comments be sorted by live where the comments are updated real time without refreshing?

4
Barnsreply
lemmy.world

That would be Lemmy functionality, not the bot's, and I believe that's currently not possible since Lemmy removed web sockets so the servers can't "push" updates to the website in real time. You may remember that even on reddit it was an external site that was built to overcome the same limit...

4
Anxiatusreply
lemmy.world

I didnt know about that in Reddit. Is it because of security concerns? Would be nice to sort it out by live or something like slow mode

1

not security related but it creates additional load on the system. We can eventually look into building something similar.

1

Great work! What bot is this, though? Could use one to post a daily thread on our community.

1

👍

I'm working on open sourcing it as we speak, and already added support for a single team so it should be ready in a few days

3
lemmy.world

Amazing!

Suggesting: Create a twitter bot that posts Woj/Charania tweets with >10K likes

1
Barnsreply
lemmy.world

I've thought about it but there are two issues - one is that Twitter (Elon...) just locked their API so the bot would need to use some hack to scrape the twitter pages (not impossible though). The other is that like you said, we don't want to post every Woj/Shams tweet but by the time the important ones reach 10k likes (or a similar filter), someone probably would post them here already so we'd be posting stake tweets...

not sure I have a solution for the 2nd problem, happy to hear opinions :)

2

Thank you for the explanation! Regarding the double-posting problem, I think that a check if tweet is already posted should be enough in most cases.

1
lemmy.world

So all game threads and post game are automatic, or we need to send a commend to the bot to prompt one?

0

all the threads are automatic, the Bot just keeps running all the time and updates them

2

You reached the end