blob: ab295548ed362f78a3c3a88cfbf7121a9202f99b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
using MatrixRoomUtils.Core;
using MatrixRoomUtils.Core.Responses;
namespace MatrixRoomUtils.Bot.Interfaces;
public class CommandContext {
public GenericRoom Room { get; set; }
public StateEventResponse MessageEvent { get; set; }
public string CommandName => (MessageEvent.TypedContent as MessageEventData).Body.Split(' ')[0][1..];
public string[] Args => (MessageEvent.TypedContent as MessageEventData).Body.Split(' ')[1..];
}
|