Get responses from an AI chatbot that’s aware of your Minecraft surroundings.
Requirements
Minescript v3.1 or higher
lib_nbt v1 or higher
OpenAI API key (run chatbot
and follow instructions for setting up your key)
Usage
Prompt chatbot to get a single response and exit:
\chatbot PROMPT
Run chatbot in “interactive mode” in the background and have it respond to messages that match the regular expression PATTERN, with options to ignore upper/lower case and give the chatbot a name:
\chatbot -i PATTERN [ignorecase] [name=NAME]
In interactive mode, chatbot output is prefixed with >>>
and the bot can be stopped by entering quitbot
into the chat.
Examples
Ask chatbot a question and get a single response:
\chatbot "What am I looking at? And how long until sunrise?"
Run chatbot interactively, responding to chat messages that include the phrase “bot,” with any combination of upper/lower case:
\chatbot -i ".*\bbot,\s" ignorecase
Author: maxuser