Changes
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
|