35 lines
620 B
Markdown
35 lines
620 B
Markdown
# Example Plugin 3
|
|
|
|
A third example plugin demonstrating async operations and simple data storage.
|
|
|
|
## Features
|
|
|
|
- Async data fetching hook
|
|
- Data storage hook
|
|
- Periodic status reporting
|
|
|
|
## Hooks
|
|
|
|
### fetch-data
|
|
Retrieves stored data by key.
|
|
|
|
**Usage:**
|
|
```javascript
|
|
const value = await context.runHook('fetch-data', 'myKey');
|
|
```
|
|
|
|
### store-data
|
|
Stores data with a key.
|
|
|
|
**Usage:**
|
|
```javascript
|
|
await context.runHook('store-data', 'myKey', 'myValue');
|
|
```
|
|
|
|
## Installation
|
|
|
|
Install via Plugin Host interactive installer or manually clone:
|
|
```bash
|
|
git clone http://synbox.ruv.wtf:8418/litruv/Plugin-Example3.git
|
|
```
|