this post was submitted on 20 Jun 2023
15 points (100.0% liked)

Baseball

761 readers
1 users here now

The fans' home for baseball.

Mods wanted!

If you’re a member of the original mod team for r/baseball (or just wish to help out in general), DM @[email protected] and I’ll restore your position :)

AL East

[email protected] [email protected] [email protected] [email protected] [email protected]

AL Central

[email protected] [email protected] [email protected] [email protected] [email protected]

AL West

[email protected] [email protected] [email protected] [email protected] [email protected]

NL East

[email protected] [email protected] [email protected] [email protected] [email protected]

NL Central

[email protected] [email protected] [email protected] [email protected] [email protected]

NL West

[email protected] [email protected] [email protected] [email protected] [email protected]

founded 1 year ago
MODERATORS
 

cross-posted from: https://fanaticus.social/post/22176

Just wanted to everyone subscribed to this community and update one the game day bots:

Some of you may have noticed there's a game day bot that's been posting to some of your communities. I forked the popular redball bot that's widely used on reddit and have been working to get it compatible with lemmy.

That project is not complete but I plan on putting in a lot of work this weekend in order to squash the bugs and add in the remaining missing features.

Once complete, I'll roll out a standard version of it to all of the baseball communities on fanaticus. That being said, I don't want to be the guy running every baseball community on fanaticus. Anyone who wants to run a community can ask to be a mod and I'll work with them to set up and configure their own baseball bot.

06/20/23 Update:

I've added about 10 game bots to your communities so far. You may have noticed that your community used to have a bot but doesn't anymore. That's because I've moved the bots to run on our beefed up server instead of my local machine and haven't re-created them there.

There are still a couple kinks I'm working through (see @[email protected]'s mayhem yesterday) but otherwise things are going well. There is one major issue I'm running into now and would like some feedback on:

Lemmy only has a 10k character limit on post bodies. Reddit has 40k. The current bot easily pushes the 10k limit which breaks the post update. The main culprit is the highlight table. If there's a lot of action, we hit the limit. I can either:

  1. Check for 10k character limit and truncate (not ideal)
  2. Remove entire sections of the post (i.e. the highlights)

If I remove the highlights and just post them as comments, that might be ideal. Any thoughts?

top 24 comments
sorted by: hot top controversial new old
[–] [email protected] 5 points 1 year ago

Update: All baseball communities should have a game bot now!! 🎉

Please let me know if your community is missing its bot or you want to change the configuration or you want to start running it yourself.

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

06/24 Update

All of the game bots completed successfully last night. 29/30 of the bots ran on our beefy server with no issues. There was a slight hiccup initially with three bots but a quick restart of those three fixed the problem.

You may have noticed though that we have an issue with unstickying post-game threads. We're investigating now.

I will also be working on porting the side-bar bot today so get excited!

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

To-do:

[x] Fix bug w/ 10k limit

[x] Roll out baseball bot to all remaining teams

[ ] Port the side-bar updater bot

[ ] Add observability to redball app (I need to be alerted when there are errors)

Also, I really want to encourage some of you guys to take over the communities and make them your own. I am obviously not a fan of every MLB team and don't want to moderate all the communities. Please let me know if you want to mod a community and/or take over your community's bot.

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

I've been meaning to say something about helping. I'd be happy to help mod [email protected] and [email protected] .

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

Thank you for volunteering! I added you.

[–] neal 1 points 1 year ago

What do I need to take over the bot for the Braves community? I'm happy to help out!

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

Went looking through redball's forks and think I found yours, but wanted to be sure. Is this the correct fork/branch you're working on, https://github.com/benja810/redball/tree/lemmy-game-threads?

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

Yup, that's the one! @[email protected], AKA @[email protected] and I are talking dev here https://discord.gg/ptXxW6Pg

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

RE: the character limit, there are two Issues for this in GH.

Looks like they increased the limit to 50k on the front-end but not the back-end.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

I'm curious - if this fix goes in, and you upgrade fanaticus, will federation choke if the back-end of the client instance isn't upgraded? (~~It looks like a fix is checked in, but hasn't been released.~~ In theory you could run a fixed branch / patch your instance, but I don't know what that would break)

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

Do you mean if fanaticus is upgraded but not the other instances?

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

Correct. It sounds like the database isn't constrained, but I don't know if it does the size check on federation. I'd think it would have to, or it could be a security/ddos exploit.

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

Good question. I don't know if this is going to make it into the next release (the devs haven't answered me on that). But I'd imagine that would complicate things.

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

Can we pin comments within a post? Is the character limit also 10k in comments?

Perhaps pinned top level comments for highlights?

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

I was watching today's game day thread in [email protected] . A couple of things I noticed:

  • Separate scoring summary and highlights takes up a lot of space in the past body. It takes quite a while to scroll through. Perhaps they could be combined?

  • Having scoring plays as top-level comments was kind of cool and not something I've seen before. I can imagine those sparking mini conversations as threads. But, they get a bit redundant with the scoring summary in the body.

Those are just my impressions and, to be honest, I kind of avoided game day threads on Reddit. They could just get ... tedious, I guess?

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

I do believe there is a 10k limit in comments.

We can "speak as mod" which lights comments but we can't pin them to the top.

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

Gotcha, that stinks.

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

@[email protected] , just noticed that the gameday bot failed to run for [email protected] today. :/

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

Damn, sorry about that. I've been stuck at the airport forever now so I haven't been keeping tabs on things as closely as I would normally. It looks like there were a few bots that had a hiccup. I believe it's a rate limit issue.

At least the game thread posted ¯\(ツ)

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

No worries! Daily life is more important than a baseball community bot. Sorry I didn't catch it sooner.

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

Hi sorry there's a little bug that has been plaguing the game bots and because I'm out of town right now I turned off the game bots until I can properly debug.

See this post for more details https://fanaticus.social/post/113939

[–] AZWXMan 3 points 1 year ago

No problem. Thanks for the work on the bot, hopefully the participation will increase.

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

07/07 Update

I've re-activated all the game bots. I want to see if the issue related to the panicking bots is fixed with the update to 0.18.1

load more comments
view more: next ›