Welcome to the step-by-step guide on how to use the Discord Activity Monitor Bot template on the Lazy platform. This template allows you to create a Discord bot that monitors member activity within a server and enables administrators to set inactivity criteria and kick inactive members based on these criteria. The bot uses commands like !setinactivity
to set the inactivity period and !kickinactive
to remove inactive members.
To begin building your Discord Activity Monitor Bot, click on the "Start with this Template" button. This will pre-populate the code in the Lazy Builder interface, so you won't need to copy, paste, or delete any code.
Before you can test and deploy your bot, you need to set up an environment secret within the Lazy Builder:
DISCORD_BOT_TOKEN
.Ensure that your bot has the following permissions on the Discord website:
Once you have set up the environment secret, press the "Test" button. This will begin the deployment of your app and launch the Lazy CLI. The bot will start running on the Lazy platform, and you will not need to install any libraries or set up your environment.
After deploying your bot, it will be active on your Discord server. Use the following commands within your server to manage member activity:
!setinactivity [number] [days/minutes]
- Sets the inactivity criteria for the server. For example, !setinactivity 7 days
will set the inactivity threshold to 7 days.!kickinactive
- Kicks members who have been inactive longer than the set criteria.When you use the !kickinactive
command, the bot will check the activity of each member and kick those who meet the inactivity criteria. It will also send a message in the server with details about the kicked members.
If you wish to integrate this bot with other tools or services, you may need to provide the bot's server link or API endpoints. However, since this template is designed to work within a Discord server, no additional external integration steps are required for the bot to function as intended.
By following these steps, you can easily set up and use the Discord Activity Monitor Bot on your server to manage member activity and ensure an active community.
The Discord bot monitors all messages in the server. If a message contains profanity, the bot deletes it and sends a warning to the channel. The bot also notifies the host about the deletion via a direct message. Additionally, the bot outputs a helpful error message to a channel if there is a permissions error, guiding the server admin to enable the required permission in the Discord Developer portal.