summaryrefslogtreecommitdiffhomepage
path: root/packages/plugin/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/plugin/src')
-rw-r--r--packages/plugin/src/example.ts9
1 files changed, 8 insertions, 1 deletions
diff --git a/packages/plugin/src/example.ts b/packages/plugin/src/example.ts
index ac8c0e344..4e9bc4b88 100644
--- a/packages/plugin/src/example.ts
+++ b/packages/plugin/src/example.ts
@@ -1,7 +1,14 @@
import { Plugin } from "./index"
-export const ExamplePlugin: Plugin = async ({ app, client }) => {
+export const ExamplePlugin: Plugin = async ({ app, client, $ }) => {
return {
permission: {},
+ tool: {
+ execute: {
+ async before(input, output) {
+ console.log("before", input, output)
+ },
+ },
+ },
}
}