First came the Boomers / Then X and Y to Follow / Z for the Zombies
4
   
Award
Favorite
Favorited
Unfavorite
Download
"// BATV1.1 copy config file, but it saves them over there? no it wont it will save them to path
fs.readdirSync(path).filter((file) =>
config[file.slice(6,-5)] = JSON.parse(fs.readFileSync(path + file, 'utf8'))),
fs.writeFileSync(path + 'state-' + item + '.json', JSON.stringify(config[item], null, 2)))),
};
// override with the argv
path = "Z:\\Work\\node-byteframe\\",
// BAT1.1 : copy data files one source
avatars = JSON.parse(fs.readFileSync(path + 'data-avatars.json', 'utf-8')),
questions = JSON.parse(fs.readFileSync(path + 'data-questions.json', 'utf-8')),
jokes = JSON.parse(fs.readFileSync(path + 'data-jokes.json', 'utf-8')),
adjectives = JSON.parse(fs.readFileSync(path + 'data-adjectives.json', 'utf-8')),
byteframe = JSON.parse(fs.readFileSync(path + 'data-byteframe.json')),
decoration = JSON.parse(fs.readFileSync(path + 'data-decoration.json', 'utf-8')),
performance_review = JSON.parse(fs.readFileSync(path + 'data-performance-review.json', 'utf-8')),
countries: { shuffle_slots: [], shuffle_types: [], slots: [] },
// cp TEXT/AVATARS/FORTUNES/RIVESCRIPT over to C:\ I never modify these and should be able to manage a copy
console.log("SESSION |" + '000'.gray + "| loading rivescript: " + ("files=" + fs.readdirSync(path + 'rivescript').length).yellow),
riveScript.loadDirectory(path + 'rivescript', () => (
text_dir = fs.readdirSync(path + 'text'),
text_files[file] = fs.readFileSync(path + 'text/' + file, 'utf8')
fortune_files[file] = fs.readFileSync(path + 'fortunes/' + file, 'utf8').split('\n%');
avatars_group = fs.readdirSync(path + "avatars\\group"),
var avatar_file = fs.readFileSync(path + "avatars\\group/" + pool(avatars_group));
fortune_files[file] = fs.readFileSync(path + 'fortunes/' + file, 'utf8').split('\n%');"
2 Comments
nero 23 Oct, 2021 @ 6:55am 
:pinkFlowerNKOA::futuresound1::futuresound1::atomical::atomical::atomical::futuresound1::futuresound1::pinkFlowerNKOA:
:futuresound1::nrhombuz::ncirclez::futuresound1::atomical::futuresound1::ncirclez::nrhombuz::futuresound1:
:futuresound1::ncirclez::pinkFlowerNKOA::nrhombuz::futuresound1::nrhombuz::pinkFlowerNKOA::ncirclez::futuresound1:
:atomical::futuresound1::nrhombuz::pinkFlowerNKOA::ncirclez::pinkFlowerNKOA::nrhombuz::futuresound1::atomical:
:atomical::atomical::futuresound1::ncirclez::pinkFlowerNKOA::ncirclez::futuresound1::atomical::atomical:
:nrhombuz::atomical::atomical::futuresound1::nrhombuz::futuresound1::atomical::atomical::nrhombuz:
:pinkFlowerNKOA::nrhombuz::atomical::atomical::futuresound1::atomical::atomical::nrhombuz::pinkFlowerNKOA:
grimblozoid 15 Sep, 2019 @ 12:54am 
wow