The Discord server stats bot requires certain permissions to function properly. These include the ability to read message history, send messages, and react to messages. The bot will generate stats such as total members, online members, offline members, bots, text channels, voice channels, roles, server creation date, and members joined in the last 24 hours. Please provide the Discord bot token in the Env Secrets tab under the name 'DISCORD_BOT_TOKEN'.
Welcome to the step-by-step guide on how to set up and use the Discord Server Stats Bot. This bot is designed to provide you with comprehensive statistics about your Discord server, including member counts, channel information, and activity metrics. Whether you're a server administrator looking to monitor growth or a curious member interested in server dynamics, this bot will serve your needs without the hassle of manual data collection.
To begin using this template, simply click on "Start with this Template" on the Lazy platform. This will set up the template in your Lazy Builder interface, and you can proceed with the following steps to get your bot up and running.
Before you can use the bot, you need to provide a Discord bot token. This token allows your bot to interact with the Discord API and is essential for the bot's functionality. Here's how to set it up:
With the environment secret set, your bot is now ready to be deployed.
For the bot to function correctly, you need to invite it to your Discord server and ensure it has the necessary permissions. Follow these steps:
Ensure that your bot has been added to the server and has the appropriate roles and permissions to access the channels and information it needs to generate statistics.
Once you have set up the environment secret and invited the bot to your server, you can deploy the bot using the Test button on the Lazy platform. This will launch the Lazy CLI, and the bot will start running. No further user input is required at this stage unless you want to interact with the bot commands within your Discord server.
To use the bot, simply type the command '!serverstats' in any text channel where the bot has permission to read and send messages. The bot will begin compiling server statistics and will provide you with a detailed report. If you want to get channel-specific statistics, use the command '!channelstats
After deploying the bot, you can interact with it directly on your Discord server. Here are some commands you can use:
To get general server statistics:
!serverstats
To get statistics for a specific channel:
!channelstats channel-name
Replace 'channel-name' with the name of the channel you want to analyze. The bot will respond with the requested statistics.
By following these steps, you should have a fully functional Discord Server Stats Bot running on your server. Enjoy the insights and convenience this bot brings to managing and understanding your Discord 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.