mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 09:18:27 -04:00
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:
@@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
7796
src/NadekoBot/data/commandlist.json
Normal file
7796
src/NadekoBot/data/commandlist.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user