/[sudobot]/trunk/src/automod/Antijoin.ts
ViewVC logotype

Contents of /trunk/src/automod/Antijoin.ts

Parent Directory Parent Directory | Revision Log Revision Log


Revision 225 - (show annotations)
Mon Jul 29 17:29:06 2024 UTC (8 months, 1 week ago) by rakin
File MIME type: application/typescript
File size: 426 byte(s)
feat: add anti-join systems
1 import { GuildMember } from "discord.js";
2 import Service from "../utils/structures/Service";
3
4 export default class Antijoin extends Service {
5 enabled = false;
6
7 async start(member: GuildMember) {
8 if (!this.enabled) {
9 return false;
10 }
11
12 await member.kick("Anti-join systems are active right now");
13 return true;
14 }
15
16 toggle() {
17 this.enabled = !this.enabled;
18 }
19 }

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26