From c137f94aeb122c636629fb9361dd73626594f690 Mon Sep 17 00:00:00 2001 From: Rory& Date: Fri, 22 Mar 2024 17:43:00 +0100 Subject: Changes --- Commands/DbgDumpActivePoliciesCommand.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Commands/DbgDumpActivePoliciesCommand.cs') diff --git a/Commands/DbgDumpActivePoliciesCommand.cs b/Commands/DbgDumpActivePoliciesCommand.cs index 285d792..81e81a0 100644 --- a/Commands/DbgDumpActivePoliciesCommand.cs +++ b/Commands/DbgDumpActivePoliciesCommand.cs @@ -7,10 +7,11 @@ using ModerationBot.AccountData; namespace ModerationBot.Commands; -public class DbgDumpActivePoliciesCommand - (IServiceProvider services, HomeserverProviderService hsProvider, HomeserverResolverService hsResolver, PolicyEngine engine) : ICommand { +public class DbgDumpActivePoliciesCommand(IServiceProvider services, HomeserverProviderService hsProvider, HomeserverResolverService hsResolver, PolicyEngine engine) : ICommand { public string Name { get; } = "dbg-dumppolicies"; + public string[]? Aliases { get; } public string Description { get; } = "[Debug] Dump all active policies"; + public bool Unlisted { get; } private GenericRoom logRoom { get; set; } public async Task CanInvoke(CommandContext ctx) { @@ -35,4 +36,4 @@ public class DbgDumpActivePoliciesCommand await ctx.Room.SendFileAsync("all.json", new MemoryStream(engine.ActivePolicies.ToJson().AsBytes().ToArray()), contentType: "application/json"); await ctx.Room.SendFileAsync("by-type.json", new MemoryStream(engine.ActivePoliciesByType.ToJson().AsBytes().ToArray()), contentType: "application/json"); } -} +} \ No newline at end of file -- cgit 1.5.1