From 677fe757733ab4af327ba74d047195be7d578e60 Mon Sep 17 00:00:00 2001 From: Rory& Date: Sun, 17 Mar 2024 13:30:38 +0100 Subject: Bot related fixes, image size --- Utilities/LibMatrix.Utilities.Bot/Interfaces/CommandContext.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Utilities/LibMatrix.Utilities.Bot/Interfaces') diff --git a/Utilities/LibMatrix.Utilities.Bot/Interfaces/CommandContext.cs b/Utilities/LibMatrix.Utilities.Bot/Interfaces/CommandContext.cs index 062e99f..c6abde2 100644 --- a/Utilities/LibMatrix.Utilities.Bot/Interfaces/CommandContext.cs +++ b/Utilities/LibMatrix.Utilities.Bot/Interfaces/CommandContext.cs @@ -14,8 +14,8 @@ public class CommandContext { .SkipWhile(x => x.StartsWith(">")) .Aggregate((x, y) => $"{x}\n{y}"); - public string CommandName => MessageContentWithoutReply.Split(' ')[0][1..]; - public string[] Args => MessageContentWithoutReply.Split(' ')[1..]; + public required string CommandName; + public required string[] Args; public required AuthenticatedHomeserverGeneric Homeserver { get; set; } public async Task Reply(RoomMessageEventContent content) => await Room.SendMessageEventAsync(content); -- cgit 1.4.1