The official leaked source code of the Dyno Discord Bot.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
351 B

4 years ago
  1. const dot = require('dot-object');
  2. const config = { };
  3. const flatConfig = dot.dot(config);
  4. for (let k of Object.keys(flatConfig)) {
  5. switch (typeof flatConfig[k]) {
  6. case 'object':
  7. case 'string':
  8. break;
  9. default:
  10. flatConfig[k] += `$typeof:${typeof flatConfig[k]}`;
  11. }
  12. }
  13. console.log(flatConfig);