This Discord activity bot monitors and ranks member activity within a server. It allows administrators to rank inactivity criteria in days or minutes using command !setinactivity x minutes or !setinactivity x days. Inactive users can be kicked based on the criteria set by the administrators using command !kickinactive. App requires 'DISCORD_BOT_TOKEN' environment secret. And you need to give the bot following permissions on discord website. Read Message History: To fetch past messages and determine member activity. Kick Members: To remove inactive members from the server. Read Messages / View channels: To read latest message of user.