public async Task ListCycles() { string output = ""; for (int i = 0; i < LocustCycles.Count; i++) { LocustCycle cycle = LocustCycles[i]; output += $"Locust cycle {i} in {cycle.Region} with {cycle.Moons.Count} moons.\n"; } await RespondAsync($"```{output}```"); }
public async Task ListCycles(int cycle) { string output = ""; if (cycle < 0 || cycle > LocustCycles.Count) { throw new Exception("Index out of bounds."); } LocustCycle lCycle = LocustCycles[cycle]; for (int i = 0; i < lCycle.Moons.Count; i++) { MoonInformation moon = lCycle.Moons[i]; output += $"{NumberToText(moon.RarityCount)} {moon.Rarity} {moon.Name}.\n"; } await RespondAsync($"```{output}```"); }