Skip to content

AInnova is a PocketMine-MP plugin for Minecraft PE (1.1.0 - 1.1.7) that allows asynchronous communication with an AI API. Send messages and receive responses without blocking the server. Configure your API token (available at api.ai-nnova.ru) and AI model easily.

License

Notifications You must be signed in to change notification settings

zanderrrdev/AInnova

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AInnova

AInnova is a PocketMine-MP plugin for Minecraft PE servers (versions 1.1.0 - 1.1.7) that allows you to send requests to an AI API and receive responses asynchronously. This plugin facilitates easy interaction with AI models within your Minecraft server.

Features

  • Send messages to AI and receive responses.
  • Asynchronous processing to avoid blocking the main server thread.
  • Configurable API token (available at api.ai-nnova.ru) and model.

Installation

  1. Download the AInnova plugin source files.
  2. Extract the files into a folder named AInnova.
  3. Place the entire AInnova folder into the plugins directory of your PocketMine-MP server.
  4. Restart the server.

Configuration

After installation, configure the API token and model in your code:

$plugin = Main::getInstance();
$plugin->setToken('your_api_token_here'); // Get a token at api.ai-nnova.ru
$plugin->setModel('your_ai_model_here'); // Find available models at api.ai-nnova.ru/models

To send a message to the AI, use the following method:

$plugin->sendMessage('Hello, AI!', function (Server $server, array $response) {
    if (isset($response['message'])) {
        $server->getLogger()->info('AI Response: ' . $response['message']);
    } else {
        $server->getLogger()->error('Error: ' . json_encode($response));
    }
});
  • This plugin is compatible with PocketMine-MP version 3.0.0 and Minecraft PE versions 1.1.0 to 1.1.7.

Contributing

  • If you would like to contribute to this project, feel free to open issues or pull requests.

License

  • This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Thanks to the PocketMine-MP community for their support and inspiration from various AI and plugin development resources.

About

AInnova is a PocketMine-MP plugin for Minecraft PE (1.1.0 - 1.1.7) that allows asynchronous communication with an AI API. Send messages and receive responses without blocking the server. Configure your API token (available at api.ai-nnova.ru) and AI model easily.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages