@@ -0,0 +1,1316 @@
+package dev.nincodedo.ninbot.components.tally;%0A%0Aimport dev.nincodedo.ninbot.components.command.CommandOption;%0Aimport dev.nincodedo.ninbot.components.command.SlashCommand;%0Aimport net.dv8tion.jda.api.events.interaction.SlashCommandEvent;%0Aimport net.dv8tion.jda.api.interactions.commands.OptionType;%0Aimport org.springframework.stereotype.Component;%0A%0Aimport java.util.Arrays;%0Aimport java.util.HashMap;%0Aimport java.util.List;%0A%0A@Component%0Apublic class Tally implements SlashCommand %7B%0A%0A    private static HashMap%3CString, Integer%3E tallyCount = new HashMap%3C%3E();%0A%0A    @Override%0A    public String getName() %7B%0A        return %22tally%22;%0A    %7D%0A%0A    @Override%0A    public String getDescription() %7B%0A        return %22Count something, I dunno%22;%0A    %7D%0A%0A    @Override%0A    public List%3CCommandOption%3E getCommandOptions() %7B%0A        return Arrays.asList(new CommandOption(OptionType.STRING, %22name%22, %22Name of the thing you're tallying%22, true));%0A    %7D%0A%0A    @Override%0A    public void execute(SlashCommandEvent slashCommandEvent) %7B%0A        String name = slashCommandEvent.getOptionsByName(%22name%22).get(0).getAsString().toLowerCase();%0A        tallyCount.putIfAbsent(name, 0);%0A        tallyCount.put(name, tallyCount.get(name) + 1);%0A        int count = tallyCount.get(name);%0A        slashCommandEvent.reply(name + %22 count: %22 + count).queue();%0A    %7D%0A%7D%0A

Add tally slash command