jay
269d258763
feat(command): ✨ use a simpler text based system for receiving server commands
3 years ago
jay
356f83e39b
fix(command): 👽 fix `whisper` event api change with an extra parameter
...
Whisper also now includes who it was whispered to
3 years ago
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
3 years ago
jay
9f6fea2423
feat(command): 🔊 add system (non-chat) messages to console log
...
This includes anything that doesn't return a `.text`.
Such as an `extra`, `translate` or other `json` formatted message.
Ex:
- afk
- errors
- player leave and joins
3 years ago
jay
60394e38eb
refactor: ♻️ replace `add` with `vec3.offset`
...
This avoids having to import and creat a `new vec3.v()`
3 years ago
jay
22490f7ec1
fix(command): 🐛 fix bot address regex returning undefined
...
Waits till spawn to make sure `bot.username` is definitely initialized
3 years ago
jay
72c4622091
feat(informer): ✨ various improvements and fixes
...
Feat:
- Letter aliases for subcommands.
- Most recent command when no input.
- Start player relative info stub.
Fix:
- Player username not shown.
3 years ago
jay
0757776d8b
feat(command): 🎨 make botaddress prefix and regex more flexible and configurable
3 years ago
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
3 years ago
jay
b1a592dbbd
fix(mover): 🐛 workaround for vehicle not being removed in api on dismount
...
`bot.vehicle` isn't removed on dismount, so this done manually
3 years ago
jay
e6d29576e7
refactor(command): 🚚 move vehicle commands near other moves
...
Move the following:
- vehicle commands next to other movement related commands like `go`.
- move `ride` / `mount` command functionality into mover plugin
3 years ago
jay
cc18ac5c2e
refactor(mover): 🚚 move commands inside mover plugin itself
...
This reduces the code inside the command plugin.
Most of the logic was only relevant to moving anyway.
Command aliases like `come` and `follow` still remain in command plugin.
3 years ago
jay
7b2b936f81
feat(mover): ✨ implement moveY (vertical move up or down)
...
Doesn't appear to be working properly, bot assumes XZ is goal reached
3 years ago
jay
e74d796124
fix(command): 🐛 make `follow` command work again without params
3 years ago
jay
b519913355
feat(mover): ✨ implement moving to X Z goal (without y)
3 years ago
jay
b1dab1968c
fix(command): ✏️ fix `follow` command not working
3 years ago
jay
3219ec6155
feat(informer): ✨ actually add a command for info plugin
3 years ago
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.
3 years ago
jay
69d0f5830d
feat(mover): ✨ add close(er) command to follow / come closer
3 years ago
jay
ba7c53be0c
refactor(command): ♻️ make toss exit early if non-existent block
3 years ago
jay
5b4718fa5d
fix(command): 🐛 add missing return
3 years ago
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.
3 years ago
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.
3 years ago
jay
086251bce6
feat: add a basic feature to rejoin on server restart
3 years ago
jay
0ae961521f
feat(command): ✨ expand follow to include rest of the `!go follow` sub commands
3 years ago
jay
f8df1fa319
feat: ✨ update command plugin
3 years ago
jay
4f1e510386
feat: 🎉 init new repo
...
Dump of current working bot.
Warning: somewhat messy code! Lints haven't been run, no tests, etc.
3 years ago