change: .exexport will now send you the file in DMs, to avoid incident.

change: .exexport will now have a timestamped name along with the server id
This commit is contained in:
Kwoth
2024-07-14 16:11:04 +00:00
parent d3ab32a7ac
commit 9f060243f0

View File

@@ -398,7 +398,7 @@ public partial class NadekoExpressions : NadekoModule<NadekoExpressionsService>
var serialized = _service.ExportExpressions(ctx.Guild?.Id);
await using var stream = await serialized.ToStream();
await ctx.Channel.SendFileAsync(stream, "exprs-export.yml");
await ctx.User.SendFileAsync(stream, $"exprs-export_{DateTime.UtcNow:yyyy-MM-dd-HH-mm-ss}_{(ctx.Guild?.Id.ToString() ?? "global")}.yml");
}
[Cmd]