diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-07-01 20:51:15 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-07-01 20:51:15 +0200 |
commit | 7978f08235ceca22eacae11a88a7703513238cb3 (patch) | |
tree | 6a7058f21f6040cc1e9396a85774bc16ea133c9e /MatrixRoomUtils.Bot | |
parent | Todays progress (diff) | |
download | MatrixUtils-7978f08235ceca22eacae11a88a7703513238cb3.tar.xz |
Deduplicate some api calls
Diffstat (limited to 'MatrixRoomUtils.Bot')
-rw-r--r-- | MatrixRoomUtils.Bot/Bot/Commands/CmdCommand.cs | 2 | ||||
-rw-r--r-- | MatrixRoomUtils.Bot/MatrixRoomUtils.Bot.csproj | 1 |
2 files changed, 1 insertions, 2 deletions
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 = ""; diff --git a/MatrixRoomUtils.Bot/MatrixRoomUtils.Bot.csproj b/MatrixRoomUtils.Bot/MatrixRoomUtils.Bot.csproj index 7012647..5eba4fd 100644 --- a/MatrixRoomUtils.Bot/MatrixRoomUtils.Bot.csproj +++ b/MatrixRoomUtils.Bot/MatrixRoomUtils.Bot.csproj @@ -22,7 +22,6 @@ <ItemGroup> <PackageReference Include="ArcaneLibs" Version="1.0.0-preview3020494760.012ed3f" /> - <PackageReference Include="Markdig" Version="0.31.0" /> <PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0-preview.5.23280.8" /> </ItemGroup> <ItemGroup> |