From a7c6e5d28a60f7aeb55e0b9fc6c42f32b9e4d3ae Mon Sep 17 00:00:00 2001 From: Kwoth Date: Wed, 19 Oct 2016 13:33:54 +0200 Subject: [PATCH] Added timestamp to .savechat messages --- src/NadekoBot/Modules/Administration/Administration.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NadekoBot/Modules/Administration/Administration.cs b/src/NadekoBot/Modules/Administration/Administration.cs index 7627773c..b2d7333f 100644 --- a/src/NadekoBot/Modules/Administration/Administration.cs +++ b/src/NadekoBot/Modules/Administration/Administration.cs @@ -782,7 +782,7 @@ namespace NadekoBot.Modules.Administration } var title = $"Chatlog-{channel.Guild.Name}/#{channel.Name}-{DateTime.Now}.txt"; await (umsg.Author as IGuildUser).SendFileAsync( - await JsonConvert.SerializeObject(new { Messages = msgs.Select(s => s.ToString()) }, Formatting.Indented).ToStream().ConfigureAwait(false), + await JsonConvert.SerializeObject(new { Messages = msgs.Select(s => $"【{s.Timestamp:HH:mm:ss}】" + s.ToString()) }, Formatting.Indented).ToStream().ConfigureAwait(false), title, title).ConfigureAwait(false); }