SpikeHD / AmazonMonitor

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

Wrong price format on last Price + some bugs #38

Closed Jayy9 closed 3 years ago

Jayy9 commented 3 years ago

The format was wrong on the New price as well but I fixed it on line 32 (util.js) where it says: return p.replace(',','') => return p.replace(',','.')

image

But I can't find a way to fix the old price as well.

Also in data.js line 84 where it says const data = JSON.parse(fs.readFileSync(watchFile)) I replaced const with var because it was giving an error (don't remember the error).

image

Last thing: It sends every 5 minutes or so the same price even without changing.

image

SpikeHD commented 3 years ago

This should hopefully be fixed in the most recent commits. If you still encounter problems, don't hesitate to make a new issue :)