From afa588d84324a2fc834ce2eeb732d4e677553c52 Mon Sep 17 00:00:00 2001 From: Isaia <2000newmar@gmail.com> Date: Fri, 26 Mar 2021 16:18:46 -0600 Subject: [PATCH] Add list of commands to readme --- README.md | 84 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/README.md b/README.md index 7b9283e..ce3b94f 100644 --- a/README.md +++ b/README.md @@ -24,3 +24,87 @@ Always make sure the virtual environment is running `(env)`. (env) $ USERNAME=you@domain.com PASSWORD=supersecret SERVER=example.com python main.py ``` + + + +## Commands + +Talking to bot (All commands can be found in "game.py" under "public commands", starting around line 494) + +Use prefix (in this case, "1") to call to attention before giving command. (EX. 1ping, 1here, etc.) + +# ping +Will respond "pong" if active and listening + +# pos +Will respond with current position + +# afk +Will afk (if not already) + +# unafk +Will unafk (if afk) + +# error +--- + +# inv +Will list inventory (in terminal) + + +# time +--- + +# count +--- + +# loaded +--- + +# players +--- + +# objects +--- + +# mobs +--- + +# monsters +--- + +# villagers +--- + +# threats +--- + +# spiral +--- + +# sand slice +--- + +# zzz +Will afk if in overworld, and if not already afk + +# tree +--- + +# block +--- + +# + + + + + + +## temporary workarounds + +# Add "?" to line 457, which is "match1 = re.match(r'<(\w+)> (.*)', text)" +It should now look like this "match1 = re.match(r' (.*)', text)" +This allows the bot to react to commands made by someone else than the creator of code (Tanner6) + +