jay
e74d796124
fix(command): 🐛 make follow
command work again without params
2021-01-16 13:50:35 +05:00
jay
3d5ffe38cd
feat(mover): ✨ inform when goal reached
2021-01-16 13:25:26 +05:00
jay
b519913355
feat(mover): ✨ implement moving to X Z goal (without y)
2021-01-15 00:36:17 +05:00
jay
b1dab1968c
fix(command): ✏️ fix follow
command not working
2021-01-05 11:34:49 +05:00
jay
3219ec6155
feat(informer): ✨ actually add a command for info plugin
2021-01-05 11:32:33 +05:00
jay
f38ad8c819
fix(command): 🚧 fix and workaround bot look at this
...
Workaround being unable to look at what player is looking at.
Currently looks at what player is standing on.
2021-01-05 09:30:14 +05:00
jay
4b8a39d38c
feat(informer): ✨ add optional metadata to block info display
2021-01-05 09:20:35 +05:00
jay
6b71de0356
refactor(informer): 🚚 proper name to block info function
...
Be more specific: `block` instead of `info`.
In anticipation of future functions in this module.
2021-01-05 08:52:38 +05:00
jay
96214ffe37
fix(informer): 🐛 use block.type instead of block.id
...
`block.id` is nonexistent when tested live
2021-01-05 08:32:30 +05:00
jay
034f8d331a
fix(informer): 🐛 convert array to string for chat
...
`bot.chat` only supports strings
2021-01-05 08:18:21 +05:00
jay
69d0f5830d
feat(mover): ✨ add close(er) command to follow / come closer
2021-01-05 08:11:11 +05:00
jay
8e719d5ccf
feat(sleeper): ✨ add and adjust functionality to properly sleep
...
Can now use beds in inventory but with a hacky block placing workaround.
`findBlock` returns a null position.
So it uses the closest adjacent block and assumes it'll work.
Bot also is more robust at sleeping,
2020-12-27 05:50:16 +05:00
jay
112eb04a8d
refactor(sleeper): ♻️ simplify and make sleeping code more robust
2020-12-27 01:58:17 +05:00
jay
ba7c53be0c
refactor(command): ♻️ make toss exit early if non-existent block
2020-12-27 00:30:46 +05:00
jay
5b4718fa5d
fix(command): 🐛 add missing return
2020-12-25 07:29:06 +05:00
jay
902732c6dd
chore: ⬆️ update deps
2020-12-25 07:20:05 +05:00
jay
65d13a3379
style: fix crlf -> lf
2020-12-25 07:17:54 +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
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
1a3c345017
chore: 🙈 ignore .env
2020-12-24 09:16:11 +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