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

'exexport will now have a timestamped name along with the server id
This commit is contained in:
Toastie 2024-07-16 22:35:14 +12:00
parent db83e6abc2
commit f18eb1bf42
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4

View file

@ -397,7 +397,7 @@ public partial class EllieExpressions : EllieModule<EllieExpressionsService>
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]