Advertisement
MagneticaMusic

Code example

Feb 18th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. "domain": "charredgrass.github.io", //for api key uses
  2. "language": "en",
  3. "pollInterval": 30000
  4. });
  5.  
  6. const ADD = 0;
  7. var stock = 0;
  8.  
  9. var config;
  10. try {
  11. config = JSON.parse(fs.readFileSync('./config.json')); //To get config file
  12. } catch (err) {
  13. log("Error: unable to parse config.json."); //Incase logging error
  14. log("Error details: " + err.message); //Logging error message
  15. process.exit(1); //Exiting program
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement