Subj : JS Commission? To : Android8675 From : echicken Date : Sun May 31 2020 04:35 pm Re: JS Commission? By: Android8675 to All on Thu May 28 2020 08:07:59 An> I'd like to have a small frontend that lets the user specify a couple parameters. So I'm hoping to An> have a .js door that: An> -takes a story datafile as a parameter An> -asks the user a question which specifies color choices to pass to dfrotz An> -makes a save folder for the user based on their username-# if it does not exist. An> +and calls dfrotz and exits after. // Script starts console.clear(); const story = argv[0]; const color = console.yesno('Do you want color?'); const save_dir = backslash(format('%s%04d-dfrotz', system.data_dir, user.number)); mkdir(save_dir); bbs.exec( 'dfrotz' + ' -h ' + console.screen_rows + ' -f ' + (color ? 'ansi' : 'normal') + ' -R ' + save_dir ); // Script ends That's a start anyhow; probably some more things to be added. --- echicken electronic chicken bbs - bbs.electronicchicken.com þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com .