DiteCross icon indicating copy to clipboard operation
DiteCross copied to clipboard

ERROR: Token not found in file discord.ini

Open RedYre opened this issue 8 years ago • 3 comments

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?

RedYre avatar Nov 16 '16 11:11 RedYre

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

GiovanniGrieco avatar Nov 23 '16 20:11 GiovanniGrieco

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.

aleksandervines avatar Mar 11 '17 18:03 aleksandervines

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)

aleksandervines avatar Mar 11 '17 22:03 aleksandervines