Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fs.readFile(
- './config.json',
- (err, data) => {
- let json = JSON.parse(data);
- json.externalURL = bs.utils.devIp.shift();
- fs.writeFile('./config.json', JSON.stringify(json), err => {
- if (err) {
- throw err;
- }
- })
- })
Add Comment
Please, Sign In to add comment