File tree Expand file tree Collapse file tree 3 files changed +3
-14
lines changed
src/main/java/pw/chew/mlb Expand file tree Collapse file tree 3 files changed +3
-14
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments