DiteCross
DiteCross copied to clipboard
ERROR: Token not found in file discord.ini
I get the error mentioned in the title when I run it. I used the format of the "telegram.ini" file. How does this work?
Hi, can you show me how do you make the file, on what Operating System and with what software? To guarantee your privacy, just change your token and use hashtag characters (#)
Stating the README file, you should write the file following this format:
[token]
EXAMPLE###EXAMPLE
Thank you
I probably have exact same issue here. Some info on my system: Windows 7
npm version { 'ditecross-bot.js': '1.0.0', npm: '3.10.8', ares: '1.10.1-DEV', http_parser: '2.7.0', icu: '57.1', modules: '48', node: '6.9.1', openssl: '1.0.2j', uv: '1.9.1', v8: '5.1.281.84', zlib: '1.2.8' }
I will try to solve this later, will update this case then.
As expected, had to do with linebreaks in windows.
This fix fixed it: ditecross.js:
function read_token(fileName) {
var lines = fs.readFileSync(fileName).toString().split(require('os').EOL)