https://github.com/harryitz/meet-bard
a library for PMMP connect to Google Bard AI.
https://github.com/harryitz/meet-bard
Last synced: 9 months ago
JSON representation
a library for PMMP connect to Google Bard AI.
- Host: GitHub
- URL: https://github.com/harryitz/meet-bard
- Owner: harryitz
- License: gpl-3.0
- Created: 2023-05-20T14:04:26.000Z (about 3 years ago)
- Default Branch: pm4
- Last Pushed: 2023-06-02T01:15:48.000Z (about 3 years ago)
- Last Synced: 2025-10-04T10:55:50.420Z (10 months ago)
- Language: PHP
- Size: 276 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Meet-Bard
[](https://poggit.pmmp.io/ci/TaylorR47/Meet-Bard/Meet-Bard)
[](https://discord.gg/yAhsgskaGy)
**NOTICE:** This plugin branch is for PocketMine-MP 4.
✨ **a library for PMMP connect to Google Bard AI.**
`composer require taylor/meet-bard`
# API Docs
## Authentication
1. Visit https://bard.google.com/
2. F12 for console
3. Session: `Application → Cookies → Copy the value of __Secure-1PSID cookie.`
## Usage
Simple usage looks like:
```php
use TaylorR\MeetBard\Bard;
use TaylorR\MeetBard\security\User;
$token = '';
$user = new User($token);
$bardai = new Bard($user);
$ask = $this->client->ask("Hello, how are you?");
var_dump($ask);
```
# Include in your plugin
If you use Poggit to build your plugin, you can add it to your .poggit.yml like so:
```yaml
projects:
MyPlugin:
path: ""
libs:
- src: TaylorR47/Meet-Bard/Meet-Bard
version: ^1.0.0
```
# License
GPL-3.0 License. Please see [LICENSE](LICENSE) for more information.