v.0.8.3 - Updates on shop module (under the hood work)
Added 2019-05-12 17:54:46 +0000 UTCHi Patrons!
@WhiteSpeaker is udpated to v0.8.3. Which was a massive rehaul of the current system, on which I changed/added about 1.8k lines of codes only on this module.
There is no big visual change to what you see today. But this is all related to your last poll result.
@WhiteSpeaker is checking the inventory of all products now. Not only the active ones, because the last sale was a bit confuse. Articles remained as available, even when the inventory became 0 or articles became inventory, even when they are flagged as unavailable. A problem which is not created on my side, but I included some features to cover all of the circumstances. This should now be fixed.
So with the changes above, the next release in a few weeks will contain the requests of the Poll:
- At least x Products were added prior to be notified via SMS/CALL/EMAIL
- Inventory of the products increased
- Email notification with additional information (links to each product, inventory for each warehouse and maybe some pictures)
Again: This is not included yet. I would like to see, that every change I made is working properly on the next sale prior that the new functions will be coded. Every information which is required to fulfill the above points are available with the v0.8.3 update.
Here the details of the update:
SHOP:
- Inventory will be checked prior to the notification. Ground work for upcoming SMS/CALL/EMAIL feature as requested by Patrons
- Speed increase: Quicker shop checks.
- Comparing products now to own database, not to memory. Will recognize updates, when the white speaker had a restart too.
- Checking also products, which are flagged as unavailable. Unavailable items were on sale last time... Hidden things will be recognized now!
- Changed Database to NoSQL. More flexibility.
- Logging complete shop details. Inlcuding the history of each product.
- Added burst mode: Each product will be pulled very quick for the inventory information.
- Switched 24h log to NoSQL databse (no missing products anymore, when only 1 were bought)
- Inventory Status: Added HQ (unmerged from US). Because you are not able to order from HQ and US at the same time.
- Changed Timezone to UTC - because @WhiteSpeaker lives in that zone.
- Recognizing inventory increases. @everyone once it was 0 before.
- Changed auto delete time to 24h instead of 2h
TWITTER:
- Tweets won't be auto deleted anymore of our Content Contributors
DISCORDLOG:
- Bug Fix - Nickname not tracket on DM's
ROLES:
- Preperation for notifications via Roles. Not active yet.
NPM's:
- Updated all packages to latest version. Especially discord.js
I have tested a lot! Nevertheless I could have missed something. Please let me know, if you identify any issues. Especially when you don't get any CALL/SMS on the next sale.
Thank you very much for your contribution and patience!
Best regards,
Meffesino with @WhiteSpeaker