doing 'gencmdlist will now generate a data/commandlist.json which is the same as the file you receive in discord

This commit is contained in:
Toastie 2024-08-07 11:49:24 +12:00
parent 027690b3d7
commit a8aa1d909f
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4

View file

@ -509,6 +509,7 @@ public sealed partial class Help : EllieModule<HelpService>
// send the indented file to chat
await using var rDataStream = new MemoryStream(Encoding.ASCII.GetBytes(readableData));
await File.WriteAllTextAsync("data/commandlist.json", readableData);
await ctx.Channel.SendFileAsync(rDataStream, "cmds.json", GetText(strs.commandlist_regen));
}