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:

rezz,

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

Barns,
@Barns@lemmy.world avatar

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

afoutopatisa,

Amazing!

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

Barns,
@Barns@lemmy.world avatar

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 :)

afoutopatisa,

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.

decadentrebel,
@decadentrebel@lemmy.world avatar

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

Barns,
@Barns@lemmy.world avatar

👍

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

TheloniusFuegoRhymes,

This is so sick! Thanks guys

naneek,

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!!

v_krishna,
@v_krishna@lemmy.ml avatar

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

pobautista,

This is great stuff, and much needed with the growing community. Awesome work!

whoopThereItIs,
@whoopThereItIs@lemmy.world avatar

This is great! Thank you mods!!

death916,

Is it open source. Id love to add it to !sacramentokings

Barns,
@Barns@lemmy.world avatar

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 (github.com/swar/nba_api) didn’t support it… then a bit of tidying up and we should be good to go.

Jackolantern,

Now we just need an NBAcirclejerk community here to complete the yin and yang…

Darren,

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.

aquarisces,

Love to see how this community is developing - great work team!

Vlhacs,

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

vodkasolution,

Love to read that!

Terasuske,

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

Barns,
@Barns@lemmy.world avatar

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…

Terasuske,

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

Barns,
@Barns@lemmy.world avatar

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

spacedancer,

Awesome! Can’t wait for this community to overtake r/nba. Great work, and thanks!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • nba@lemmy.world
  • ethstaker
  • thenastyranch
  • GTA5RPClips
  • everett
  • Durango
  • rosin
  • InstantRegret
  • DreamBathrooms
  • magazineikmin
  • Youngstown
  • mdbf
  • slotface
  • cisconetworking
  • kavyap
  • JUstTest
  • normalnudes
  • modclub
  • cubers
  • ngwrru68w68
  • khanakhh
  • tacticalgear
  • tester
  • provamag3
  • Leos
  • osvaldo12
  • anitta
  • megavids
  • lostlight
  • All magazines