Add ShopSync support (#26)
* feat: add shopSync options to config.example.lua

* docs: document shopSync settings

* feat: get as much of the shopsync support done as possible before I go to work

* fix: typos, version.txt finding & gps

* feat: broadcast products in ShopSync message

* chore: revert repo owner in installer.lua

* chore: remove unneccesary .gitignore entry I made

* fix: missing comma in config

* style: extract ctx.config.shopSync to it's own variable, remove rendundant parenthesis

* refactor: create utils.isNullish helper, improve how GPS location is stored & move enabled check to init.lua

* fix: my stupidity

* fix: backwards compatibility with older configs

* fix: shopsync no longer initially reports 0 stock

* fix: wait for chests to be refreshed instead of doing it ourselves
1 parent 9ae79fb commit 6544ab60cb0809dd6ebd67d18b3af8b60359fca3
@Ian Ian authored on 15 Jun 2023
GitHub committed on 15 Jun 2023
Showing 4 changed files
View
data/config.example.lua
View
src/init.lua
View
src/shopsync.lua 0 → 100644
View
src/utils.lua