zappyzep/backend/src/plugins/Automod/triggers/exampleTrigger.ts
2020-07-27 20:42:10 +03:00

27 lines
412 B
TypeScript

import * as t from "io-ts";
import { automodTrigger } from "../helpers";
export const ExampleTrigger = automodTrigger({
configType: t.type({
some: t.number,
value: t.string,
}),
defaultConfig: {},
matchResultType: t.type({
thing: t.string,
}),
async match() {
return {
extra: {
thing: "hi",
},
};
},
renderMatchInformation() {
return "";
},
});