mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 04:25:01 +00:00
25 lines
491 B
TypeScript
25 lines
491 B
TypeScript
import z from "zod";
|
|
import { automodTrigger } from "../helpers";
|
|
|
|
// 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`;
|
|
},
|
|
});
|