about summary refs log tree commit diff
path: root/Commands/DbgDumpActivePoliciesCommand.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-03-22 17:43:00 +0100
committerRory& <root@rory.gay>2024-03-22 17:43:00 +0100
commitc137f94aeb122c636629fb9361dd73626594f690 (patch)
tree44f04e0b2b026d21c817e330918243fd5a4a8cd4 /Commands/DbgDumpActivePoliciesCommand.cs
parentChanges (diff)
downloadModerationBot-c137f94aeb122c636629fb9361dd73626594f690.tar.xz
Changes
Diffstat (limited to 'Commands/DbgDumpActivePoliciesCommand.cs')
-rw-r--r--Commands/DbgDumpActivePoliciesCommand.cs7
1 files changed, 4 insertions, 3 deletions
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<bool> 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