SpikeHD / AmazonMonitor

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

search query broken #91

Closed kekkodance closed 1 year ago

kekkodance commented 1 year ago

hmmm..

[ 'link' ] [DEBUG] [] [DEBUG] { link: 'b650+am5', category: '', query: '', priceLimit: 0 } [DEBUG] Price Limit: 0 [LOG] TypeError: Cannot read properties of undefined (reading 'match') at Object. (file:///home/ubuntu/AmazonMonitor/commands/watch.ts:40:85) at Generator.next () at file:///home/ubuntu/AmazonMonitor/commands/watch.ts:7:71 at new Promise () at __awaiter (file:///home/ubuntu/AmazonMonitor/commands/watch.ts:3:12) at Object.run (file:///home/ubuntu/AmazonMonitor/commands/watch.ts:23:12) at file:///home/ubuntu/AmazonMonitor/index.ts:99:13 at Generator.next () at fulfilled (file:///home/ubuntu/AmazonMonitor/index.ts:4:58) at processTicksAndRejections (node:internal/process/task_queues:95:5)

kekkodance commented 1 year ago

wait, this is actually an issue with the bot telling me to use the "-l" flag when doing !watch b650+am5 when it was supposed to tell me to use -q

SpikeHD commented 1 year ago

Adjusted in db5514b