jamesjamail / TunnelQuestBot

Everquest auction watcher for P99 Servers
9 stars 6 forks source link

Slightly reformat stream messages #24

Closed rm-you closed 4 years ago

rm-you commented 4 years ago

Also add a basic test for wikiHandler message formatting.

Resolves: #23

rm-you commented 4 years ago

If you could pull this down and run it on the test bot, that'd be A++ :D

jamesjamail commented 4 years ago

(node:5124) UnhandledPromiseRejectionWarning: TypeError: Reduce of empty array with no initial value at Array.reduce () at formatPriceMessage (C:\Users\PC RIG\Documents\App Dev\TunnelQuestBot\wikiHandler.js:37:49) at fetchAndFormatAuctionData (C:\Users\PC RIG\Documents\App Dev\TunnelQuestBot\wikiHandler.js:30:29) at processTicksAndRejections (internal/process/task_queues.js:97:5) (node:5124) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:5124) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. (node:5124) UnhandledPromiseRejectionWarning: TypeError: Reduce of empty array with no initial value at Array.reduce () at formatPriceMessage (C:\Users\PC RIG\Documents\App Dev\TunnelQuestBot\wikiHandler.js:37:49) at fetchAndFormatAuctionData (C:\Users\PC RIG\Documents\App Dev\TunnelQuestBot\wikiHandler.js:30:29) at processTicksAndRejections (internal/process/task_queues.js:97:5) (node:5124) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2) (node:5124) UnhandledPromiseRejectionWarning: TypeError: Reduce of empty array with no initial value at Array.reduce () at formatPriceMessage (C:\Users\PC RIG\Documents\App Dev\TunnelQuestBot\wikiHandler.js:37:49) at fetchAndFormatAuctionData (C:\Users\PC RIG\Documents\App Dev\TunnelQuestBot\wikiHandler.js:30:29) at processTicksAndRejections (internal/process/task_queues.js:97:5)