From f5d95c30fd0deecc8941a80c445b2780422f6857 Mon Sep 17 00:00:00 2001 From: Andryshik345 Date: Tue, 14 Mar 2023 23:19:36 +0500 Subject: [PATCH 1/2] Replaced date blocks with discord's dynamic ones --- CompatBot/Commands/EventsBaseCommand.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CompatBot/Commands/EventsBaseCommand.cs b/CompatBot/Commands/EventsBaseCommand.cs index 8a880dd2..28548fd3 100644 --- a/CompatBot/Commands/EventsBaseCommand.cs +++ b/CompatBot/Commands/EventsBaseCommand.cs @@ -266,13 +266,13 @@ protected static async Task List(CommandContext ctx, string? eventName = null, i var printName = string.IsNullOrEmpty(currentEvent) ? "Various independent events" : $"**{currentEvent} {currentYear} schedule**"; msg.AppendLine($"{printName} (UTC):"); } - msg.Append(StringUtils.InvisibleSpacer).Append('`'); + msg.Append(StringUtils.InvisibleSpacer); if (ModProvider.IsMod(ctx.Message.Author.Id)) - msg.Append($"[{evt.Id:0000}] "); - msg.Append($"{evt.Start.AsUtc():u}"); + msg.Append($"`[{evt.Id:0000}]` "); + msg.Append($""); if (ctx.Channel.IsPrivate) - msg.Append($@" - {evt.End.AsUtc():u}"); - msg.AppendLine($@" ({evt.End.AsUtc() - evt.Start.AsUtc():h\:mm})`: {evt.Name}"); + msg.Append($@" - "); + msg.AppendLine($@" ({evt.End.AsUtc() - evt.Start.AsUtc():h\:mm}): {evt.Name}"); } var ch = await ctx.GetChannelForSpamAsync().ConfigureAwait(false); await ch.SendAutosplitMessageAsync(msg, blockStart: "", blockEnd: "").ConfigureAwait(false); From 05911f0cbd2ab990d50322c05675a5ae5fb6cab2 Mon Sep 17 00:00:00 2001 From: Andryshik345 Date: Wed, 15 Mar 2023 01:15:02 +0500 Subject: [PATCH 2/2] Fix the formatting --- CompatBot/Commands/EventsBaseCommand.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CompatBot/Commands/EventsBaseCommand.cs b/CompatBot/Commands/EventsBaseCommand.cs index 28548fd3..405df7d7 100644 --- a/CompatBot/Commands/EventsBaseCommand.cs +++ b/CompatBot/Commands/EventsBaseCommand.cs @@ -269,9 +269,9 @@ protected static async Task List(CommandContext ctx, string? eventName = null, i msg.Append(StringUtils.InvisibleSpacer); if (ModProvider.IsMod(ctx.Message.Author.Id)) msg.Append($"`[{evt.Id:0000}]` "); - msg.Append($""); + msg.Append($""); if (ctx.Channel.IsPrivate) - msg.Append($@" - "); + msg.Append($@" - "); msg.AppendLine($@" ({evt.End.AsUtc() - evt.Start.AsUtc():h\:mm}): {evt.Name}"); } var ch = await ctx.GetChannelForSpamAsync().ConfigureAwait(false);