Skip to content

Commit

Permalink
warcard
Browse files Browse the repository at this point in the history
  • Loading branch information
xdnw committed Jul 20, 2024
1 parent 25c36ff commit 8b78d26
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ public CommandManager2 registerDefaults() {
//See example in CommandManager2#registerDefaultsMissing methods for FACommands:
// - generateCoalitionSheet
this.commands.registerMethod(new FACommands(), List.of("coalition"), "generateCoalitionSheet", "sheet");
this.commands.registerMethod(new WarCommands(), List.of("war"), "war", "card");
//
//See example in CommandManager2#registerDefaultsMissing methods for PlayerSettingCommands:
// - bankAlertList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4015,6 +4015,12 @@ public String wars(@Me IMessageIO channel, DBNation nation) {
return null;
}

@Command(desc="Show war info for a nation", aliases = {"wars", "warinfo"})
public String war(@Me IMessageIO channel, DBWar war) {
new WarCard(war.warId).embed(channel, true, false);
return null;
}

@Command(desc = "Calculate spies for a nation.\n" +
"Nation argument can be nation name, id, link, or discord tag\n" +
"If `spies-used` is provided, it will cap the odds at using that number of spies\n" +
Expand Down

0 comments on commit 8b78d26

Please sign in to comment.