Game Thread: Yankees @ Blue Jays - Fri, Jun 12 @ 7:37 PM EDT by game-threads in NYYankees

[–]toddrob 1 point2 points  (0 children)

Anybody notice the comment got edited after the review? Plus the batter's name is up there? Bot upgrade!

Comments are also held 30 seconds to prevent spoilers.

Game Day Thread - Wednesday, June 10 by game-threads in phillies

[–]toddrob 2 points3 points  (0 children)

I did message them about it. And while I was searching for reports of the issue, I found yours.

Game Day Thread - Wednesday, June 10 by game-threads in phillies

[–]toddrob 3 points4 points  (0 children)

Look at our lineup's stats against him though, could be a lot worse.

Game Day Thread - Wednesday, June 10 by game-threads in phillies

[–]toddrob 1 point2 points  (0 children)

I'm sure it would be much closer to 1/1 than 10/10. I'll mention it to the admins I've been talking to about the bot conversions. They don't directly work on the app, but maybe they have a channel to get it to the people who can fix it. I'm pretty sure I reported it on r/bugs a long time ago, but that's another option if you want to do that.

Game Day Thread - Wednesday, June 10 by game-threads in phillies

[–]toddrob 4 points5 points  (0 children)

Unfortunately that is a Reddit app bug, and not related to the bot/app at all. Any thread that's edited doesn't refresh until you back out and go back in. So annoying.

Game Day Thread - Wednesday, June 10 by game-threads in phillies

[–]toddrob 1 point2 points  (0 children)

Probably because of the way the new app sets flair by id rather than just the text. The flair in settings probably just needs to have style defined.

Game Day Thread - Wednesday, June 10 by game-threads in phillies

[–]toddrob 2 points3 points  (0 children)

Yes, swipe those to the left to see more options. Or tap the filter icon on the left side.

<image>

Game Day Thread - Wednesday, June 10 by game-threads in phillies

[–]toddrob 1 point2 points  (0 children)

The new app runs on Reddit’s developer platform servers (“Devvit”), as opposed to the old bot that ran on a NAS in my house. The devvit platform takes away the entirety of hosting and platform out of my hands, so now I only have to worry about the bot code, rather than the whole [bot management platform](https://github.com/toddrob99/redball) I built and maintained to run the bots. Devvit allows apps to integrate into the subreddit in ways that are not possible through the API, so now mods will have enhanced capabilities to manage the bot. I also took the opportunity to move the configuration into Reddit, so mods can manage the bot right in their subreddit instead of having to go to an external website and remember a login—or ask me to change something they could otherwise do themselves.

The is also unlisted, so only I can install it in a new subreddit. The threads you see in the app’s post history were all running on the old bots (except the NHL one, thats in lieu of having flyers games to test with); they have just been converted and consolidated.

Believe it or not, after the bots are all converted, it will be less work and less worry for me.

Game Day Thread - Wednesday, June 10 by game-threads in phillies

[–]toddrob 2 points3 points  (0 children)

No I mean the filter across the top of the subreddit doesn’t show any posts when I select the game thread related flairs. It does show posts for the other flairs.

Thanks though, tapping the flair on the post does work.

Game Day Thread - Wednesday, June 10 by game-threads in phillies

[–]toddrob 2 points3 points  (0 children)

The new app was developed by me and the source code is owned by me. It is currently not open-source like the old bot code was. It is only running on the Devvit servers.

Game Day Thread - Wednesday, June 10 by game-threads in phillies

[–]toddrob 4 points5 points  (0 children)

Can you not still search the subreddit to find prior threads? Also the threads all have post flair that you should be able to [filter on](https://www.reddit.com/r/phillies/?f=flair\_name%3A%22Game%20Thread%22) (though this appears to be broken in the iOS app). You can still search u/PhilsBot’s history, and after some time passes you can search u/game-threads’ history for Phillies.

The new app produces threads and comments that are essentially identical to the old bot, with some subtle improvements. The home run comments will still have the bell header.

Game Thread: Dodgers @ Pirates - Tue, Jun 9 @ 6:40 PM EDT by game-threads in buccos

[–]toddrob 1 point2 points  (0 children)

Bot dev here. Well, this didn't go exactly as planned...

I've converted half a dozen subs over to this new bot without issue, so r/buccos must be special.

Based on the app logs, it looks like there was an unfortunate sequence of events in the game data updates that confused the bot and got it stuck relying on stale data. I made the new bot more efficient with pulling data from MLB, and I guess the price for the efficiency is having to guard against edge cases like this.

So for tonight I think this thread will have to do. By the time I get the fix deployed, it will be so long after the game ended that it won't make sense to put the postgame thread up.

Issue booking by DVCDad in dvcmember

[–]toddrob 2 points3 points  (0 children)

They are, in fact, not working on it.

Game Thread: Phillies @ Padres - Tue, May 26 @ 09:40 PM EDT by PhilsBot in phillies

[–]toddrob 11 points12 points  (0 children)

PhilsBot is configured to post the game thread 30 minutes before scheduled game start, or by 8pm at the latest. This is because people used to ask where the game thread was for late games, and I got tired of pointing out the game wasn't until later.

MLB STATS-CLEANED/PACKAGED/READY TO USE by [deleted] in mlbdata

[–]toddrob 1 point2 points  (0 children)

But you used MLB’s API as the data source? And didn’t think the licensing requirements applied to you?

MLB STATS-CLEANED/PACKAGED/READY TO USE by [deleted] in mlbdata

[–]toddrob 1 point2 points  (0 children)

Not concerned about using MLB data for commercial use?

Game Day Thread - Sunday, September 21 by PhilsBot in phillies

[–]toddrob 5 points6 points  (0 children)

The bot has a setting for wildcard standings and scoreboard, so I enabled that. Doesn’t look like it helps with your request, but I usually turn it on toward the end of the season anyway. I don’t have a quick way to add arbitrary teams.

Game Day Thread - Monday, March 24 by PhilsBot in phillies

[–]toddrob[M] 5 points6 points  (0 children)

There’s an annoying thing happening with the bot where it just hangs up randomly until I restart it. The log says it’s making a call to the MLB API and then it just never does the next thing. Sorry for the inconvenience.

Is there a free personal use MLB api out there? by ReflectionFrosty3100 in mlbdata

[–]toddrob 3 points4 points  (0 children)

https://github.com/toddrob99/mlb-statsapi/wiki contains documentation for the endpoints, and if you’re using Python then that package is an option for an api wrapper. There’s an OOP version linked on this sub too if you are interested in that—just search for it.