add: 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:
Kwoth
2024-08-06 14:58:13 +00:00
parent eb29e34f17
commit 54adbedf9f
2 changed files with 7797 additions and 0 deletions

View File

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

File diff suppressed because it is too large Load Diff