about summary refs log tree commit diff
path: root/Bot/Commands/PingCommand.cs
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-09-15 09:50:45 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-09-15 09:50:45 +0200
commitcc31b4a2bef780abaf496bff50ce5e7602d8a6e1 (patch)
treef25a87c79cdfeb853146c5312b8990f644c71eae /Bot/Commands/PingCommand.cs
parentMedia moderator PoC works, abstract command handling to library (diff)
downloadLibMatrix.ExampleBot-cc31b4a2bef780abaf496bff50ce5e7602d8a6e1.tar.xz
Some refactoring
Diffstat (limited to '')
-rw-r--r--Bot/Commands/PingCommand.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bot/Commands/PingCommand.cs b/Bot/Commands/PingCommand.cs

index f70cd78..a261a59 100644 --- a/Bot/Commands/PingCommand.cs +++ b/Bot/Commands/PingCommand.cs
@@ -8,6 +8,6 @@ public class PingCommand : ICommand { public string Description { get; } = "Pong!"; public async Task Invoke(CommandContext ctx) { - await ctx.Room.SendMessageEventAsync("m.room.message", new RoomMessageEventData(body: "pong!")); + await ctx.Room.SendMessageEventAsync("m.room.message", new RoomMessageEventContent(body: "pong!")); } }