Welcome to the guide on how to use the Discord Bot That Deletes Messages template on Lazy. This template is designed to help you manage messages within a Discord channel by providing commands to set an automatic message clearing interval, remove the interval, delete messages from specific users or bots, remove duplicate messages, and delete messages containing a specific keyword. This bot is a powerful tool for Discord server administrators looking to keep their channels clean and organized.
To begin using this template, simply click on the "Start with this Template" button on the Lazy platform. This will pre-populate the code in the Lazy Builder interface, so you won't need to copy, paste, or delete any code manually.
Before you can use the bot, you'll need to set up two environment secrets within the Lazy Builder:
Enter these values in the Environment Secrets tab within the Lazy Builder.
Once you have set up the environment secrets, press the "Test" button to deploy the app. The Lazy CLI will launch, and the bot will start running on the Lazy platform.
If the bot requires any user input, you will be prompted to provide it through the Lazy CLI after pressing the test button. Follow the prompts to enter the necessary information.
After deployment, you can use the bot commands directly within your Discord server. For example, you can type !set_clear_interval 3600
to set the message clearing interval to one hour. The bot will respond to commands issued by users with administrative rights in the Discord server.
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. Since this template is designed to work within Discord, no additional integration steps are required unless you want to extend the bot's functionality with external services.
Remember, all the commands and functionalities provided by this bot are to be used within the Discord platform. There is no need to integrate it with external tools unless your specific use case requires it.
By following these steps, you should now have a fully functional Discord bot that can manage messages in your channel. Enjoy your cleaner and more organized Discord server!
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.