Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development Improvement: Mock data #11

Open
garaiza-93 opened this issue Jun 22, 2023 · 1 comment
Open

Development Improvement: Mock data #11

garaiza-93 opened this issue Jun 22, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@garaiza-93
Copy link
Collaborator

Allowing the ability to mock data such as the pricelist would streamline the development process by not relying on the bot for data. This would also make it harder to mess up bot data, human error or otherwise, during development.

The big thing is to populate an object (pricelist, settings, etc) from the get-go, so no IPC.

I'll tinker, but if anyone wants to help me on this please do.

@garaiza-93
Copy link
Collaborator Author

I'm worried about how messy the code could be. My current idea is to extend getBotPricelist() to conditionally return a Pricelist object that is already populated with some data.
I think a similar approach would be used for other data objects. I'll probably add this data in index.js to avoid code pasta.

@arik123 arik123 added the enhancement New feature or request label Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants