Piece not loading when stores.register() is called
Code: https://github.com/UTCSheffield/olp-nixos-config/tree/Sean/Upgrade-tool/update-tool/server
I'm using pieces without framework as it's not for a bot, When I call container.stores.register(new MessageStore()) no paths get populated and it never loads a piece, when it should be loading 1
Typescript version: 5.5.4
Pieces version: 4.3.1
Node: 20.16.0
Any ideas?
I'm using pieces without framework as it's not for a bot, When I call container.stores.register(new MessageStore()) no paths get populated and it never loads a piece, when it should be loading 1
Typescript version: 5.5.4
Pieces version: 4.3.1
Node: 20.16.0
Any ideas?
GitHub
School's Nixos config. Contribute to UTCSheffield/olp-nixos-config development by creating an account on GitHub.
Solution
You're missing
container.stores.registerPath() to set up the path, followed by await container.stores.load(); to load the pieces.