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:
parent
027690b3d7
commit
a8aa1d909f
1 changed files with 1 additions and 0 deletions
|
@ -509,6 +509,7 @@ public sealed partial class Help : EllieModule<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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue