3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-06-07 08:05:01 +00:00
zeppelin/backend/src/plugins/Automod/triggers/unban.ts

25 lines
497 B
TypeScript

import z from "zod/v4";
import { automodTrigger } from "../helpers.js";
// tslint:disable-next-line:no-empty-interface
interface UnbanTriggerResultType {}
const configSchema = z.strictObject({});
export const UnbanTrigger = automodTrigger<UnbanTriggerResultType>()({
configSchema,
async match({ context }) {
if (context.modAction?.type !== "unban") {
return;
}
return {
extra: {},
};
},
renderMatchInformation() {
return `User was unbanned`;
},
});