uhhhh. Update sized update

This commit is contained in:
2025-02-13 17:44:25 +01:00
parent 069d615272
commit 2a10508534
9 changed files with 98 additions and 46 deletions
+5 -3
View File
@@ -32,7 +32,9 @@ struct Args {
#[arg(long, help = "Runs only the Rust part of the program.")]
rs: bool,
#[arg(short = 'd', long, help = "Enables dev mode. Dev mode shows more debug info and turns of certain security measures.")]
dev: bool
dev: bool,
#[arg(short = 'w', long, help = "Wipes all data before running the program.")]
wipe: bool
}
struct Data {
@@ -111,11 +113,11 @@ fn gen_data(args: Args) -> Data {
byte_dice_id: 697149665166229614,
reddit_data: None.into(),
discord_data: None.into(),
args
args: args.clone()
};
data::read_dc_data(&data);
data::read_re_data(&data);
data::read_re_data(&data, args.clone().wipe);
return data;
}