summaryrefslogtreecommitdiffhomepage
path: root/packages/plugin/src/example.ts
blob: 4e9bc4b887420ef5d22ed19abb9fbbf3c188794e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { Plugin } from "./index"

export const ExamplePlugin: Plugin = async ({ app, client, $ }) => {
  return {
    permission: {},
    tool: {
      execute: {
        async before(input, output) {
          console.log("before", input, output)
        },
      },
    },
  }
}