20 lines
421 B
TypeScript
20 lines
421 B
TypeScript
import * as t from "io-ts";
|
|
import { automodTrigger } from "../helpers";
|
|
|
|
export const MemberLeaveTrigger = automodTrigger<unknown>()({
|
|
configType: t.type({}),
|
|
|
|
defaultConfig: {},
|
|
|
|
async match({ pluginData, context, triggerConfig }) {
|
|
if (!context.joined || !context.member) {
|
|
return;
|
|
}
|
|
|
|
return {};
|
|
},
|
|
|
|
renderMatchInformation({ pluginData, contexts, triggerConfig }) {
|
|
return "";
|
|
},
|
|
});
|