import * as t from "io-ts"; import { automodTrigger } from "../helpers"; // tslint:disable-next-line:no-empty-interface interface NoteTriggerResultType {} export const NoteTrigger = automodTrigger()({ configType: t.type({}), defaultConfig: {}, async match({ context }) { if (context.modAction?.type !== "note") { return; } return { extra: {}, }; }, renderMatchInformation({ matchResult }) { return `Note was added on user`; }, });