From 7978f08235ceca22eacae11a88a7703513238cb3 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Sat, 1 Jul 2023 20:51:15 +0200 Subject: Deduplicate some api calls --- MatrixRoomUtils.Bot/Bot/Commands/CmdCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MatrixRoomUtils.Bot/Bot') diff --git a/MatrixRoomUtils.Bot/Bot/Commands/CmdCommand.cs b/MatrixRoomUtils.Bot/Bot/Commands/CmdCommand.cs index c267298..66f3c4d 100644 --- a/MatrixRoomUtils.Bot/Bot/Commands/CmdCommand.cs +++ b/MatrixRoomUtils.Bot/Bot/Commands/CmdCommand.cs @@ -39,7 +39,7 @@ public class CmdCommand : ICommand { if ((output.Count > 0 && (msg + output[0]).Length > 64000) || output.Count == 0) { await ctx.Room.SendMessageEventAsync("m.room.message", new() { FormattedBody = $"```ansi\n{msg}\n```", - Body = Markdig.Markdown.ToHtml(msg), + // Body = Markdig.Markdown.ToHtml(msg), Format = "org.matrix.custom.html" }); msg = ""; -- cgit 1.5.1