using LibMatrix.Helpers; using LibMatrix.Utilities.Bot.Interfaces; using MiniUtils.Services; namespace MiniUtils.Commands; public class OpsCommand(IgnoreListManager ignoreListManager) : ICommand { public string Name => "ops"; public string[]? Aliases => ["admins", "mods"]; public string Description => "Ping all the mods"; public bool Unlisted => true; public async Task Invoke(CommandContext ctx) { var pls = await ctx.Room.GetPowerLevelsAsync(); var msb = new MessageBuilder(); foreach (var pl in pls.Users.Where(x => x.Value >= pls.Kick)) { msb = msb.WithMention(pl.Key).WithBody(" "); } await ctx.Room.SendMessageEventAsync(msb.Build()); } }