- BOT-AI is a PocketMine-MP plugin designed for Minecraft PE servers, enabling interaction with the AInnova AI model.
- With BOT-AI, players can send messages to an AI and receive dynamic responses directly within the game.
- This plugin works seamlessly with AInnova MCPE Integration, which provides the core AI functionalities.
- In-game AI Messaging: Players can use the
/ai
command to send requests and receive AI responses. - Async Response Handling: Keeps your server running smoothly without interrupting gameplay.
- Configurable Settings: Customize your API token and model to tailor the AI’s responses.
- PocketMine-MP: Compatible with PocketMine-MP 3.0.0 (Minecraft PE 1.1.0 - 1.1.7).
- AInnova Plugin: Install the AInnova plugin from AInnova MCPE Integration for core AI functionalities.
- Clone or download the BOT-AI plugin files.
- Place the
BOT-AI
folder into theplugins
directory of your PocketMine-MP server. - Download and set up the AInnova plugin from the repository.
- Restart your server.
Place a settings.json
file in the BOT-AI plugin folder with the following structure:
{
"token": "your_api_token",
"model": "your_model_id"
}
- Obtain the API token at api.ai-nnova.ru.
- Explore available models at api.ai-nnova.ru/models.
In-game, players can use the /ai <message>
command to send messages to the AI and receive responses. The plugin’s asynchronous handling ensures that server performance is not affected by these interactions.
// Sending a message to the AI
$plugin = Main::getInstance();
$plugin->getObject()->sendMessage('Hello AI!', function (Server $server, array $response) {
if (isset($response['response'])) {
$server->getLogger()->info('AI Response: ' . $response['response']);
} else {
$server->getLogger()->error('Error: ' . ($response['error'] ?? 'Unknown error'));
}
});
We welcome contributions! Please submit issues or pull requests to improve BOT-AI.
This project is licensed under the MIT License.