Closed wsmigielski closed 5 years ago
Maybe you could check if the config has the token inside, if not then ask for it
Yeah I was thinking something along those lines but I am not familiar with promises and such in nodejs.
I'd think something like this:
var conf = JSON.parse(require('fs').readFileSync('config.json', 'utf8'))
if (conf.token=="")
// ask for token
else
// run bot from config
The console asking for your token instead of you having to edit config.json