Welcome to the step-by-step guide on how to set up and use the Discord Clear Chat Bot. This bot is designed to help administrators of Discord servers quickly clear all messages in a channel. It listens for a "!clear_chat" command and requires confirmation before proceeding to delete messages. This guide will walk you through the necessary steps to get this bot up and running on your server.
Before you can start using the Discord Clear Chat Bot, you need to set up an environment secret that the bot will use to authenticate with Discord. This secret is your Discord bot token, which you can obtain from the Discord Developer Portal after creating your bot application.
DISCORD_BOT_TOKEN
.With your environment secret in place, the bot will be able to log in to Discord and perform its functions.
Once you have set up your environment secret, you can use the Test button to deploy your bot. This will launch the Lazy CLI, and if any additional user input is required, you will be prompted at this stage. After deployment, your bot should be online and ready to use on your Discord server.
To use the bot, you must invite it to your Discord server. Follow these steps:
With the bot now part of your server, you can use the "!clear_chat" command in any text channel to initiate the message clearing process. Remember, only users with administrative rights can use this command. Here's how it works:
!clear_chat
in the channel where you want to clear messages.That's all there is to it! You now have a functional Discord Clear Chat Bot to help maintain your server channels. If you encounter any issues or have questions, refer to the documentation provided with the bot or seek assistance from the Lazy support team.
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.