Baseball

747 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
1
 
 

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

Hello everyone! I'm back from vacation (was gone the past two weeks) and am ready to dive back into work on the game bots.

I just wanted to give everyone a quick update. You can check out my previous update thread here.

Status

  • All 30 teams have their own game bots configured and activated
  • 29 of the game bots run on the same server as fanaticus' lemmy code (big beefy box) with Cerevant running the phillies bot.
  • The post limit has been increased in 0.18.1 to 50k from 10k so we no longer have a truncation issue
  • The sidebar bot has been ported to lemmy but unfortunately is a bit more limited that we are used to (it only updates the standings of a single division) -- check out what it looks like here
  • Cerevant has [identified an issue](Reported: https://github.com/LemmyNet/lemmy/issues/3544) where pinned posts are not being federated correctly on foreign instances
  • There is an issue with the game bots that has occasionally taken down the fanaticus servers (I'll discuss this more below)

Current Issue

Game Bots Out of Control

There is an issue with the game bots that has occasionally taken down the fanaticus servers

Game bot will periodically hit a 503 while updating one of its game threads and enter a loop where it continuously attempts to update the post and fail. A bot that enters this state almost immediately spikes one of the server's four CPUs to 100%, then very quickly fills up the shared disk with the same log (GBs of logs). The GBs of logs produced by these rogue bots fill up the server and because the game bots share the same server as fanaticus, they cause the lemmy server to crash.

While I'm not entirely sure what causes this issue, my current hunch is that it's related to a rate limit either with our lemmy or nginx configuration.

When we first started bumping up to the max CPU & memory on our server I upgraded it to a beefy dedicated machine with a quad core and 8GB of RAM. I did not upgrade the shared disk space at that time. The server size was total overkill but I wanted to run the game bots on the same machine.

I've gotten a lot of questions regarding why the game bots were turned off last week and this is the reason. I had to basically babysit them and restart any that ran off the rails and because I was on vacation, I couldn't investigate the bug to fix it or babysit the bots.

Possible Fixes

These are some options I'm tossing around to fix this issue. They're not necessarily going to happen but I'm writing them here publicly so you all know that I'm working on it and to get some public comment.

  1. Fix the bug, obviously :)
  2. Move the game bots to another server, separate from fanaticus^1^
  3. Create some sort of system that detects the bots are in a runaway state, alerts me, and/or programmatically restarts the bad bots

This is a top priority for me now that I'm back from vacation and I will be working on this starting today.

Future Work

  1. Add more features to the sidebar bot to achieve feature parity with the former Reddit game bots (team/league leaders, multiple division & playoff standings, live league scoreboards)
  2. Customizable periodic threads (e.g. a daily "Around the Horn")
  3. Closer to NBA/NFL/NHL season, we'll port those game bots to lemmy

Contributing

First off, huge shout-out to Cerevant who has been working with me porting the bot to lemmy. He's done amazing work, added new features, fixed multiple bugs, and has been overall a great person to work with! Thank you!!

Another shout out to todrob99 for creating the original redball bots. He's been very responsive and encouraging as Cerevant and I work on the bots.

For any of you who want to contribute, whether it's coding, creating features requests, reporting bugs, or reviewing PRs, you can find my fork of the redball app here.

We are also discussing the work in the #lemmy channel of todrobb's Discord channel here.

Finally, another way to contribute is to take over your community's bot and run it yourself! The code is open source and I can help you set it up on your own server. That would make it easier on me so I don't have to run all the bots and you can configure it to your community's liking.


TL;DR bots are live, a little buggy, but are being improved daily!

^1^ This is definitely the correct thing to do but I'm hesitant to do this right away. I'm not a server admin by trade and this means 1) Extra overhead ($$) and maintenance 2) That I have to take time away from improving and extending the bots' functionality to do server admin work

2
 
 

Title Edit: bottom of the 7th

Title Edit2: updated score, dodgers lost

cross-posted from: https://lemmy.world/post/16723784

Title edit: format, more info, 8th inning

3
4
5
6
 
 

Josh Gibson became Major League Baseball's career leader with a .372 batting average, surpassing Ty Cobb's .367, when Negro Leagues records for more than 2,300 players were incorporated Tuesday after a three-year research project.

Gibson's .466 average for the 1943 Homestead Grays became the season standard, followed by Charlie "Chino" Smith's .451 for the 1929 New York Lincoln Giants. They overtook the .440 by Hugh Duffy for the National League's Boston team in 1894.

Gibson also became the career leader in slugging percentage (.718) and OPS (1.177), moving ahead of Babe Ruth (.690 and 1.164).

"This initiative is focused on ensuring that future generations of fans have access to the statistics and milestones of all those who made the Negro Leagues possible," baseball commissioner Rob Manfred said in a statement. "Their accomplishments on the field will be a gateway to broader learning about this triumph in American history and the path that led to Jackie Robinson's 1947 Dodger debut."

A special committee on baseball records decided in 1969 to recognize six major leagues dating to 1876: the National (which launched in 1876), the American (1901), the American Association (1882-1891), Union Association (1884), Players' League (1890) and Federal League (1914-1915). It excluded the National Association (1871-75), citing an "erratic schedule and procedures."

MLB announced in December 2020 that it would be "correcting a longtime oversight" by adding the Negro Leagues. John Thorn, MLB's official historian, chaired a 17-person committee that included Negro Leagues experts and statisticians.

7
 
 

MLB umpire Ángel Hernández is retiring effective immediately, ending a controversial three-decade-long career that in recent years turned Hernández into a source of consternation with players and a punching bag among fans on social media.

The 62-year-old Hernández, who in a statement confirmed earlier reports he would be retiring, reached a settlement to leave Major League Baseball, according to a source, and will leave after umpiring thousands of games since his debut in 1991.

Hernández, who worked his last game May 9 and was replaced on Lance Barksdale's crew by Jacob Metz, sued MLB in 2017, alleging the league had engaged in racial discrimination. The lawsuit was thrown out by a district court judge, a decision upheld by an appeals court last year.

With a penchant for bad calls -- during a 2018 playoff game, he had three calls reversed by replay in the first four innings -- Hernández received a disproportionate amount of odium from fans. The lawsuit only added to the animus Hernández generated, and the groundswell grew to the point that Hernández retired after missing much of the 2023 season with a back injury.

8
9
10
11
12
13
 
 

An automated ball-strike system may be headed to Major League Baseball sometime in the future, but any such changes are unlikely to take place by the 2025 season.

Commissioner Rob Manfred, speaking after the conclusion of the owners meetings at MLB’s offices in midtown Manhattan, said that some “issues” remain in the Minor Leagues, likely delaying the installment of the system -- widely known as ABS -- until at least 2026.

“We still have some technical issues; I don't mean technology, I mean technical issues in terms of the operation of the system,” Manfred said. “We haven't made as much progress in the Minor Leagues this year as we hoped at this point. I think it's becoming more and more likely that this will not be a go for ’25.

“One thing we did learn with the changes that we went through last year is taking the extra time to make sure you have it right is definitely the best approach. I think we're going to use that same approach here.”

Among the issues are the definition of the strike zone and setting the strike zone for individual batters, which can be based on percentages of a player’s height or the positioning of camera systems.

“I'm not sure that anybody is wholly satisfied with either approach,” Manfred said. “We have not started those conversations [with the MLBPA] because we haven't settled on what we think about it. It’s hard to have those conversations before you know what you're thinking.”

Manfred said there has been progress -- a “growing consensus,” as he put it -- based largely on feedback from players that if and when ABS makes it way to the Majors, the Challenge form “should be the form of ABS … at least as a starting point.” That system gives each team a limited number of challenges in each game to use in order to review a ball or strike call.

“Originally we thought everybody was going to be wholeheartedly in favor of the idea; if you can get it right every single time, that's a great idea,” Manfred said. “One thing we've learned in these meetings is that the players feel there could be other effects on the game that would be negative if you used it full-blown. The second one is those who have played with it do have a strong preference for the Challenge system over ABS calling every pitch. That has certainly altered our thinking on where we might be headed.”

One of those effects -- or as Manfred put it, “unintended consequences” -- of instituting a system in which ABS calls every pitch is the effect it would have on catchers who excel in framing.

“I think the players feel that a catcher that frames is part of the art of the game,” Manfred said. “If in fact framing is no longer important, the kind of players that would occupy that position might be different than they are today. You could hypothesize a world where instead of a premium catcher who's focused on defense, the catching position becomes a more offensive player. That alters people's careers, so those are real, legitimate concerns that we need to think all the way through before we jump off that bridge.”

14
15
16
17
18
19
20
21
22
23
 
 

Cubs lefty Shota Imanaga stood on the mound and yelled, soaking in the noise at Wrigley Field after striking out Michael A. Taylor to end the seventh inning on Saturday afternoon. He then slowly walked off the field with some more history in his back pocket.

With another seven scoreless frames for the North Siders in a 1-0 walk-off win over the Pirates, Imanaga lowered his ERA to 0.84 on the season. No pitcher in baseball history has posted a lower mark through their first nine career starts since ERA became an official statistic in 1913.

“When you start getting in this territory,” Cubs manager Craig Counsell said, “you have to be a little surprised, for sure. We're fortunate to watch it.”

Prior to Imanaga’s run out of the gates this season, the lowest ERA through nine career starts (excluding openers) was the 0.91 mark spun by Fernando Valenzuela in his sensational rookie showing for the Dodgers in 1981.

24
25
view more: next ›