This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* jshint esversion: 6 */ | |
| /** kicks all members from your discord sever who's last messages is more then 30 days ago or joined more then 30 days ago and havent' send a message yet | |
| * replace "YOUR_BOT_TOKEN_HERE" with the token of your bot | |
| * replace "GUILDID" with the ID of your guild | |
| * if you only want to kick inactive members from a certain role, then use the line that includes the .roles.get( and repalce the ROLEID wiht the ID of that role | |
| * to start, enter these 2 commands: | |
| * npm install discord.js | |
| * node 'kick inactive members.js' | |
| * let this run for a hour or so, it takes a while to kick a lot of members | |
| */ |