about summary refs log tree commit diff
path: root/Utilities/LibMatrix.Utilities.Bot/Configuration/CommandListenerConfiguration.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-05-15 23:08:54 +0200
committerRory& <root@rory.gay>2025-05-15 23:08:54 +0200
commite16e9f3093fab575f5f9323248e7b19fa6d54566 (patch)
tree6d29d35e72526144d7c81afc78f4574993e6df4b /Utilities/LibMatrix.Utilities.Bot/Configuration/CommandListenerConfiguration.cs
parentRemove SetPresence=online default in sync helper (diff)
downloadLibMatrix-master.tar.xz
Redo bot configuration HEAD master
Diffstat (limited to 'Utilities/LibMatrix.Utilities.Bot/Configuration/CommandListenerConfiguration.cs')
-rw-r--r--Utilities/LibMatrix.Utilities.Bot/Configuration/CommandListenerConfiguration.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/Utilities/LibMatrix.Utilities.Bot/Configuration/CommandListenerConfiguration.cs b/Utilities/LibMatrix.Utilities.Bot/Configuration/CommandListenerConfiguration.cs
new file mode 100644

index 0000000..e3026cd --- /dev/null +++ b/Utilities/LibMatrix.Utilities.Bot/Configuration/CommandListenerConfiguration.cs
@@ -0,0 +1,24 @@ +using System.Diagnostics.CodeAnalysis; +using LibMatrix.Filters; + +namespace LibMatrix.Utilities.Bot.Configuration; + +[SuppressMessage("ReSharper", "UnusedAutoPropertyAccessor.Global", Justification = "Configuration")] +[SuppressMessage("ReSharper", "ClassNeverInstantiated.Global", Justification = "Configuration")] +public class CommandListenerSyncConfiguration { + // public SyncFilter? Filter { get; set; } + public TimeSpan? MinimumSyncTime { get; set; } + public int? Timeout { get; set; } + public string? Presence { get; set; } + // public bool InitialSyncOnStartup { get; set; } +} + +[SuppressMessage("ReSharper", "UnusedAutoPropertyAccessor.Global", Justification = "Configuration")] +[SuppressMessage("ReSharper", "ClassNeverInstantiated.Global", Justification = "Configuration")] +public class CommandListenerConfiguration { + public CommandListenerSyncConfiguration SyncConfiguration { get; set; } = new(); + + public required List<string> Prefixes { get; set; } + public bool MentionPrefix { get; set; } + public bool SelfCommandsOnly { get; set; } +} \ No newline at end of file