https://github.com/itz-hyperz/discord-altprev
A simple alt prevention check module for DiscordJSV12.
https://github.com/itz-hyperz/discord-altprev
node-module
Last synced: 5 days ago
JSON representation
A simple alt prevention check module for DiscordJSV12.
- Host: GitHub
- URL: https://github.com/itz-hyperz/discord-altprev
- Owner: Itz-Hyperz
- License: mit
- Created: 2021-07-28T03:23:55.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-28T03:41:57.000Z (almost 5 years ago)
- Last Synced: 2025-02-17T00:34:11.669Z (over 1 year ago)
- Topics: node-module
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# discord-altprev
A simple alt prevention module for DiscordJS V12.
---
## Support
* [Discord](https://hyperz.dev/discord)
* [Website](https://support.hyperz.dev/)
---
## Installation
`npm i discord-altprev@latest`
---
## Constructor
Base customization for the module.
| Entry | Type | Definition |
|----------------|---------------|---------------|
| #1 | STRING | The time limit for an alt to be removed
| #2 | STRING | kick or ban. DEFAULT: kick
| #3 | BOOLEAN | Debug Mode Toggle
---
## Code Example
```js
const Discord = require('discord.js')
const client = new Discord.Client()
const altprev = require('discord-altprev')
const police = new altprev('30d', 'kick', true) // If the account is 30 days or under, they will be kicked
client.on("ready", () => {
console.log(`I AM READY!!!!`)
});
client.on('guildMemberAdd', async guildMember => {
await police.checkAlt(guildMember);
});
client.login('YOUR_BOT_TOKEN')
```