2.3 KiB
ErrorNoWatcher
ErrorNoWatcher is a Minecraft bot (written in Rust with azalea) that alerts you when players are near your base. It also has other features such as interacting with blocks/entities, a basic pathfinder that can follow players and go to coordinates, a scripting system to run commands automatically, and much more.
Compiling
git clone https://github.com/ErrorNoInternet/ErrorNoWatcher
cd ErrorNoWatcher
cargo build --release
The compiled executable will be at ./target/release/errornowatcher
Usage
Running the bot will create the bot_configuration.toml
file, where you can change several options:
username = "<bot's username>"
server_address = "<server address>"
register_keyword = "Register using"
register_command = "register MyPassword MyPassword"
login_keyword = "Login using"
login_command = "login MyPassword"
bot_owners = ["ErrorNoInternet", "<allowed to run commands>"]
whitelist = [
"ErrorNoInternet",
"<won't be triggered by the alert system>"
]
alert_players = ["ErrorNoInternet", "<players to send a message to>"]
alert_location = [0, 0]
alert_radius = 192
alert_command = [
"curl",
"-s",
"-HTitle: Intruder Alert",
"-HPriority: urgent",
"-HTags: warning",
"-d{player_name} is near your base! Their coordinates are {x} {y} {z}.",
"<your URL here (or a service such as ntfy.sh)>",
]
Run /msg <bot username> help <page>
to see a list of commands you can run.
Examples:
- /msg ErrorNoWatcher bot_status
- display the bot's health, food/saturation, etc
- /msg ErrorNoWatcher goto 20 64 10
- go to x: 20, y: 64, z: 10 (using the pathfinder)
- /msg ErrorNoWatcher script sleep.txt
- run all commands in the file sleep.txt
- /msg ErrorNoWatcher attack ErrorNoInternet
- attack the player named ErrorNoInternet
- /msg ErrorNoWatcher look 180 0
- look at 180 0 (rotation values)
- /msg ErrorNoWatcher whitelist_add Notch
- temporarily add Notch to the whitelist
- /msg ErrorNoWatcher sprint forward 5000
- sprint forward for 5 seconds
- /msg ErrorNoWatcher drop_item
- drop the current held item (or drop_stack
)
- /msg ErrorNoWatcher last_location ErrorNoInternet
- display the last seen location
- /msg ErrorNoWatcher follow_player ErrorNoInternet
- start following ErrorNoInternet
- /msg ErrorNoWatcher slot 0
- switch to the first slot (0 - 8 = slots 1 - 9)