Skip to content

Commit 43f5e74

Browse files
committed
Revert "all star game 2025 shenanigans"
This reverts commit 20bff96.
1 parent 20bff96 commit 43f5e74

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

src/main/java/pw/chew/mlb/MLBBot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static void main(String[] args) throws IOException {
5555
CommandClientBuilder client = new CommandClientBuilder();
5656

5757
// Set the client settings
58-
client.setActivity(Activity.watching("the all star game!")); // ASG
58+
client.setActivity(Activity.watching("the regular season!"));
5959
client.setOwnerId(prop.getProperty("userId", "476488167042580481"));
6060
client.setPrefix("woody!");
6161

src/main/java/pw/chew/mlb/objects/MLBTeam.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,10 @@ public JSONObject record() {
1616
}
1717

1818
public int wins() {
19-
// ASG Shenanigans
20-
if (name().equals("NL All-Stars")) return 44;
21-
if (name().equals("AL All-Stars")) return 48;
2219
return record().getInt("wins");
2320
}
2421

2522
public int losses() {
26-
// ASG Shenanigans
27-
if (name().equals("NL All-Stars")) return 48;
28-
if (name().equals("AL All-Stars")) return 44;
2923
return record().getInt("losses");
3024
}
3125

src/main/java/pw/chew/mlb/util/MLBAPIUtil.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,6 @@ public List<Command.Choice> asChoices() {
136136
public record Teams(JSONArray raw) {
137137
public List<Command.Choice> asChoices() {
138138
List<Command.Choice> choices = new ArrayList<>();
139-
// ASG Shenanigans
140-
choices.add(new Command.Choice("All Star Game", 160));
141139
for (int i = 0; i < raw.length(); i++) {
142140
JSONObject team = raw.getJSONObject(i);
143141
choices.add(new Command.Choice(team.getString("name"), team.getInt("id")));
@@ -171,11 +169,8 @@ public List<Command.Choice> potentialChoices(String query) {
171169
}
172170
}
173171

174-
// ASG Shenanigans
175-
potential.add(new Command.Choice("All Star Game", 160));
176-
177-
// Return the potential list, distinct, and no more than 25 choices
178-
return potential.stream().distinct().toList().subList(0, Math.min(potential.size(), 25));
172+
// Send a message if we don't know what team
173+
return potential;
179174
}
180175
}
181176

0 commit comments

Comments
 (0)