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

const dot = require('dot-object');
const config = { };
const flatConfig = dot.dot(config);
for (let k of Object.keys(flatConfig)) {
switch (typeof flatConfig[k]) {
case 'object':
case 'string':
break;
default:
flatConfig[k] += `$typeof:${typeof flatConfig[k]}`;
}
}
console.log(flatConfig);