From e5e9d4c9ffb7037c3fce52c5fc67cde1ad2c49ba Mon Sep 17 00:00:00 2001 From: Alexey Golub Date: Sun, 1 Oct 2017 12:18:54 +0300 Subject: [PATCH] Tidy up --- DiscordChatExporter/Services/ExportService.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/DiscordChatExporter/Services/ExportService.cs b/DiscordChatExporter/Services/ExportService.cs index 2d3e123..0cae5de 100644 --- a/DiscordChatExporter/Services/ExportService.cs +++ b/DiscordChatExporter/Services/ExportService.cs @@ -26,12 +26,16 @@ namespace DiscordChatExporter.Services using (var writer = new StreamWriter(filePath, false, Encoding.UTF8, 128 * 1024)) { + // Generation info + await writer.WriteLineAsync("https://github.com/Tyrrrz/DiscordChatExporter"); + await writer.WriteLineAsync(); + // Guild and channel info - await writer.WriteLineAsync("=".Repeat(16)); + await writer.WriteLineAsync('='.Repeat(48)); await writer.WriteLineAsync($"Guild: {log.Guild}"); await writer.WriteLineAsync($"Channel: {log.Channel}"); await writer.WriteLineAsync($"Messages: {log.TotalMessageCount:N0}"); - await writer.WriteLineAsync("=".Repeat(16)); + await writer.WriteLineAsync('='.Repeat(48)); await writer.WriteLineAsync(); // Chat log @@ -43,6 +47,7 @@ namespace DiscordChatExporter.Services // Messages foreach (var message in group.Messages) { + // Content if (message.Content.IsNotBlank()) { var contentFormatted = message.Content.Replace("\n", Environment.NewLine);