From a8aa1d909fe1676360455ab7d0c0fa74742102fd Mon Sep 17 00:00:00 2001 From: Toastie Date: Wed, 7 Aug 2024 11:49:24 +1200 Subject: [PATCH] doing 'gencmdlist will now generate a data/commandlist.json which is the same as the file you receive in discord --- src/EllieBot/Modules/Help/Help.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/EllieBot/Modules/Help/Help.cs b/src/EllieBot/Modules/Help/Help.cs index f8fe29b..95fabd6 100644 --- a/src/EllieBot/Modules/Help/Help.cs +++ b/src/EllieBot/Modules/Help/Help.cs @@ -509,6 +509,7 @@ public sealed partial class Help : EllieModule // 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)); }