jay
d001280383
fix: 🥅 fix a plugin loading error
...
While reloading, plugin cache may not be deleted.
This happens when a loaded plugin encounters an error during reload.
This causes a deadlock in the unloading code.
So make sure cache is always deleted:
- ignore when an `unload()` function doesn't exist
- delete cache even if there are no `exports`
2021-04-19 13:15:25 +05:00
jay
f50e388c39
feat: 🔊 fix path in plugin reload log so that it actually works
2021-04-14 09:59:48 +05:00
jay
6b79f1fc60
refactor(plugins): ♻️ change plugin load order
2021-04-05 17:47:06 +05:00
jay
22490f7ec1
fix(command): 🐛 fix bot address regex returning undefined
...
Waits till spawn to make sure `bot.username` is definitely initialized
2021-03-23 23:10:58 +05:00
jay
0757776d8b
feat(command): 🎨 make botaddress prefix and regex more flexible and configurable
2021-03-23 14:39:07 +05:00
jay
33c4233223
feat(statemachine): 🚧 first draft of new xstate based statemachine implementation
...
Replaces the old statemachine.
Done so far:
- Basic command interface
- Machine saving and loading
- Sample dummy machine
2021-03-22 14:32:08 +05:00
jay
288b7045b6
feat: ✨ add informer plugin to show info
...
Data and information plugin.
Expose methods in mcData with acceptable ux.
Also central place for all kinds of debug features.
2020-12-24 21:39:50 +05:00
jay
94574a4296
refactor: ♻️ reorder plugin loading
...
Load in order of simplicity and dependance.
TODO: Use `bot.waitForChunksToLoad`:
Split plugins based on whether it requires blocks to be loaded or no.
2020-12-24 21:32:08 +05:00
jay
086251bce6
feat: add a basic feature to rejoin on server restart
2020-12-24 13:38:16 +05:00
jay
bf45a53f08
refactor: ➖ remove gameplay
...
temporarily remove gameplay until it is fixed and more stable
miner plugin won't work now
2020-12-24 10:40:46 +05:00
jay
47a944fe2a
fix: 🐛 compat: don't use ?.
for compat with older node.js
2020-12-24 09:19:32 +05:00
jay
de0af4d2ac
feat: 🚀 add and use dotenv-packed
...
Use dotenv for more convenient credential management
2020-12-24 08:52:50 +05:00
jay
73d5f43ad3
feat: ✨ actually enable mover and eater plugins
2020-12-23 13:28:34 +05:00
jay
4f1e510386
feat: 🎉 init new repo
...
Dump of current working bot.
Warning: somewhat messy code! Lints haven't been run, no tests, etc.
2020-12-21 21:08:38 +05:00