Additions:
- Added support for Steam's new token based login flow with a new sessionHandler module powered by node-steam-session
- Added a token storage system with invalid token checking and cleanup
- Added a token expiring in <=7 days warning system (runs every 24h) which also allows the user to directly refresh the tokens of all bot accounts while the application is running (requires a relog)
- Added compatibility system between old and new login flow to make auto updating possible
- Added info message about new login flow
- Added more debug log messages
- Added instructions comment to proxies.txt to improve first time user experience
Fixes:
- Fixed steamID related errors in ready.js by making sure bot object is populated before proceeding (#135)
- Fixed relogInterval from being able to be set multiple times
- Fixed disconnected event trying to initiate a relog for accounts which are already in the relogQueue
- Fixed an error when accounts.txt or proxies.txt was completely empty (even missing the comment)
- Fixed an error when activecommentprocess entry was deleted by updater or handleExpiringTokens.js while comment module was busy handling an aborted comment process
- Fixed bot not responding to comment command when no arguments were provided
- Fixed a lot of spelling mistakes
Changes:
- Removed steam-user's steamGuard event which is now unused as the sessionHandler handles 2FA
- Exchanged all numeric enums with text enums to avoid issues should they change
- Removed logininfo.json from default files and focused documentation and comments more on accounts.txt to improve first time user experience (logininfo.json is still supported!)
- Removed old unused 2.10 -> 2.11 compatibility files (not compatibility features but files that were required because of hard coded file paths)
- Prioritized logininfo empty check over config checks to make the user focus on the more important error
- Added printNow parameter to logger, making readyafterlogs detection less wonky
- Added eslint code styling rules and enforced them (massive commit)
- Updated dependencies