jay
cbb105fe49
fix(command): 🚸 make bot address regex (prefix) more lenient
...
Should also accept server commands now on address
2021-05-03 07:20:33 +05:00
jay
5b3804893b
feat(command): ✨ fix to show web (including extra [MODE]) messages
...
There's no way to remove `bot.addChatPattern`, so only does once on load
2021-04-29 08:37:46 +05:00
jay
3686bab167
fix: 🐛 fix plugin reload for multi-file/dir based plugins
...
Now, it also (un-)loads the whole plugin (sub and master).
This appears to be the most stable option.
Loading behaviour is unchanged from before (load only top level plugin).
However as a precaution, loading tries to unload bad plugins on error.
This helps to not end up in a bad state during reload.
2021-04-29 08:14:40 +05:00
jay
e0c477a46f
feat: 🔨 make fs.watch
recursive, so it reloadplugin
works also on directories
2021-04-27 11:47:25 +05:00
jay
ae1f7cf269
feat: 🔧 extract the hardcoded admin and mod list out into environment variables
2021-04-23 06:07:29 +05:00
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