From d133a168c17d605236e967ff63728420ddb0ed98 Mon Sep 17 00:00:00 2001 From: Rory& Date: Wed, 31 Jan 2024 18:50:16 +0100 Subject: Repo split --- .../LibMatrix.ExampleBot/Bot/Interfaces/CommandContext.cs | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 ExampleBots/LibMatrix.ExampleBot/Bot/Interfaces/CommandContext.cs (limited to 'ExampleBots/LibMatrix.ExampleBot/Bot/Interfaces/CommandContext.cs') diff --git a/ExampleBots/LibMatrix.ExampleBot/Bot/Interfaces/CommandContext.cs b/ExampleBots/LibMatrix.ExampleBot/Bot/Interfaces/CommandContext.cs deleted file mode 100644 index 6dbb7f9..0000000 --- a/ExampleBots/LibMatrix.ExampleBot/Bot/Interfaces/CommandContext.cs +++ /dev/null @@ -1,11 +0,0 @@ -using LibMatrix.EventTypes.Spec; -using LibMatrix.RoomTypes; - -namespace LibMatrix.ExampleBot.Bot.Interfaces; - -public class CommandContext { - public GenericRoom Room { get; set; } - public StateEventResponse MessageEvent { get; set; } - public string CommandName => (MessageEvent.TypedContent as RoomMessageEventContent).Body.Split(' ')[0][1..]; - public string[] Args => (MessageEvent.TypedContent as RoomMessageEventContent).Body.Split(' ')[1..]; -} -- cgit 1.4.1