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
68e60921b1
refactor(mover): 🔥 remove unused code + comments, minor fixes
...
Refactoring and fixing code.
No major functionality change.
Probably will have less bugs.
- carry over how mcData is loaded
- stop bot on unload
- fix wrong magma block name
2020-12-24 19:57:45 +05:00
jay
f2281a7cb3
feat(command): ✨ temp. move inventory chat handling to command
...
This is temporary, and only the `toss` function.
Old functionality is still intact.
New code will eventually move back as a subcommand to replace the old.
2020-12-24 19:41:52 +05:00
jay
e9f2080556
refactor(command): ♻️ refactor how mcData is loaded
...
`mcData` is now directly put on bot and loaded once.
It can be accessed from anywhere `bot` is accessible.
2020-12-24 17:51:44 +05:00
jay
086251bce6
feat: add a basic feature to rejoin on server restart
2020-12-24 13:38:16 +05:00
jay
0ae961521f
feat(command): ✨ expand follow to include rest of the !go follow
sub commands
2020-12-24 11:57:23 +05:00
jay
eae4e95803
Merge branch 'nogameplay' into master
2020-12-24 11:28:22 +05:00
jay
fb066ee8a5
refactor: ♻️ use array in pathfinder movements list
2020-12-24 11:26:19 +05:00
jay
f4445749e6
fix: ✏️ add missing plugin name
2020-12-24 11:23: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
a7ccb08d43
refactor: ➖ remove sleeper's prismarine-gameplay dependence
2020-12-24 10:35:01 +05:00
jay
8e4eb7748f
style: ♿ fix crlf to lf
2020-12-24 09:33:08 +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
b970231519
feat: ✨ add mover plugin
...
General purpose mover / goto plugin.
Replaces the old solver based `comehere` in miner.js.
Instead, directly based on mineflayer bot apis and pathfinder.
This makes it simpler and easier to debug.
While less general, pathfinder is sophisticated enough for most cases.
For anything that needs moving from point A to point B.
Such as:
- following
- go to a location
Not in scope: locations and places. Would be a separate plugin.
2020-12-22 15:38:45 +05:00
jay
787d08dd31
feat: ✨ add automatic eater plugin
2020-12-22 15:29:06 +05:00
jay
f8df1fa319
feat: ✨ update command plugin
2020-12-22 11:31:46 +05:00
jay
8eb6d790b0
feat: ✨ update sleeper
2020-12-22 11:31:06 +05:00
jay
5ead6b7267
feat: ✨ update miner
2020-12-22 11:30:16 +05:00
jay
149a01551c
feat: ✨ update inventory
2020-12-22 11:29:31 +05:00
jay
b1f27f455d
feat: ✨ update guard
2020-12-22 11:28:44 +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