SpikeHD / AmazonMonitor

Amazon price checker, item monitor and stock monitor, all shoved into a Discord bot
GNU General Public License v3.0
221 stars 38 forks source link

Help me please #70

Closed Krok-Mort closed 3 years ago

Krok-Mort commented 3 years ago

Hello everyone and thank you for this wonderful project. I have tried several times to install the monitor but can't do it due to the reason below, if anyone could help me out that would be great. I thank you in advance.

C:\Users\izido\OneDrive\Bureau\AmazonMonitor-master\AmazonMonitor-master>node index internal/modules/cjs/loader.js:1131 throw err; ^

SyntaxError: C:\Users\izido\OneDrive\Bureau\AmazonMonitor-master\AmazonMonitor-master\config.json: Unexpected string in JSON at position 101 at parse () at Object.Module._extensions..json (internal/modules/cjs/loader.js:1128:22) at Module.load (internal/modules/cjs/loader.js:950:32) at Function.Module._load (internal/modules/cjs/loader.js:790:14) at Module.require (internal/modules/cjs/loader.js:974:19) at require (internal/modules/cjs/helpers.js:92:18) at Object. (C:\Users\izido\OneDrive\Bureau\AmazonMonitor-master\AmazonMonitor-master\common\debug.js:2:27) at Module._compile (internal/modules/cjs/loader.js:1085:14) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10) at Module.load (internal/modules/cjs/loader.js:950:32)

my config :

{

"prefix":"!", "token":" " "minutes_per_check":2, "search_response_ms": 30000, "url_params":{}, "guild_item_limit":5, "cache_limit": 10, "required_perms":["ADMINISTRATEUR", "ADMINISTRATEUR"], "tld":"es","fr","de","it", "auto_cart_link":true "debug_enabled":true }

SpikeHD commented 3 years ago

You cannot include several TLDs like you've done here:

"tld":"es","fr","de","it",

You must instead provide one:

"tld":"es",

and this is only used as a default. If you use the watch command on an item from a site with a different TLD, such as amazon.ca, the item will still be watched from the .ca version, not the config version, so you don't have to include multiple.

Krok-Mort commented 3 years ago

Thank you for your answer, so I put only one TLD but I have this error coming back, how can I resolve it please?

erroe
SpikeHD commented 3 years ago

This means there is something else with your JSON, can you paste the new one?

Krok-Mort commented 3 years ago

that's it ?

json
SpikeHD commented 3 years ago

You are missing a comma at the end of

"auto_cart_link":true

I would recommend running your JSON through a JSON validation tool and fixing any more problems before attempting to continue again

Krok-Mort commented 3 years ago

Hello SpikeHD and thanks for your help, everything is working fine since i checked and solved my .json file and thanks also for this nice AmazonMonitor project. Good continuation in your work.