Nicklason / tf2-automatic

A free and open source, fully automated TF2 trading bot, advertising on backpack.tf using prices from prices.tf
https://tf2automatic.com
MIT License
82 stars 41 forks source link

Cannot read property 'toLowerCase' of null error #464

Closed comander12 closed 3 years ago

comander12 commented 3 years ago

Describe the bug

When I try to deposit items with !deposit command the bot crashes and restarts without saying that those items were added to the cart

To Reproduce

Steps to reproduce the behavior:

  1. use !deposit command
  2. ...
  3. ...

Expected behavior

Command to work Screenshots and logs

{"message":"tf2-automatic crashed! Please create an issue with the following log:\r\npackage.version: 3.5.2; node: v13.14.0 linux x64}\r\nStack trace:\r\nTypeError: Cannot read property 'toLowerCase' of null\n at Function.plural (/tf2-automatic/node_modules/pluralize/pluralize.js:136:24)\n at Object.pluralize [as default] (/tf2-automatic/node_modules/pluralize/pluralize.js:177:46)\n at Commands.depositCommand (/tf2-automatic/dist/classes/Commands.js:503:58)\n at Commands.processMessage (/tf2-automatic/dist/classes/Commands.js:120:18)\n at MyHandler.onMessage (/tf2-automatic/dist/classes/MyHandler.js:151:23)\n at Bot.onMessage (/tf2-automatic/dist/classes/Bot.js:527:22)\n at Immediate. (/tf2-automatic/dist/classes/Bot.js:142:21)\n at processImmediate (internal/timers.js:456:21)","level":"error","timestamp":"2020-10-09T05:07:27.825Z"} {"message":"Create an issue here: https://github.com/Nicklason/tf2-automatic/issues/new?template=bug_report.md","level":"error","timestamp":"2020-10-09T05:07:27.826Z"}

Additional context

Other commands including !withdraw command work fine.

Version: latest

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.