Overview
This Discord bot is designed to enhance server management and user interaction through various commands and functionalities. Built using the Discord.js library, it integrates features such as moderation, user engagement, and utility commands, providing a comprehensive tool for server administrators and members alike.
Moderation Commands:
- Ban/Kick Users: Administrators can ban or kick users from the server using the
/ban
and/kick
commands, ensuring a safe community environment. - Message Deletion: The bot automatically deletes messages containing prohibited words, maintaining a respectful chat atmosphere.
- Welcome Messages: New members receive personalized welcome messages in a designated channel, which can include images and custom text.
- Reaction Roles: Users can assign themselves roles by reacting to messages with specified emojis, facilitating easy role management.
- Giveaway Creation: Users can create giveaways with specified prizes and durations using the
/gcreate
command, increasing community participation.
- Polls: Users can create polls on various topics using the
/vote
command, allowing community members to express their opinions easily.
- Ping and Info: The
/ping
command provides latency information, while/botinfo
displays detailed statistics about the bot’s performance and server metrics. - Shortlink Generator: Users can shorten long URLs with the
/shortlink
command, making sharing easier.
- Help Command: The
/help
command provides a list of all available commands, helping users navigate the bot’s features easily. - Instagram Info: The bot can display information about Instagram accounts using the
/instagram
command, integrating social media functionality.
- The bot announces when users boost the server, celebrating community contributions and encouraging others to participate.
- The bot includes robust error handling mechanisms, logging errors to a dedicated channel, and providing feedback to users when commands fail.
- Libraries Used: The bot leverages several libraries, including
discord.js
for Discord API interactions andcanvas
for image generation. - Environment Configuration: Sensitive data such as tokens and webhook IDs are stored in environment variables for security.
- Asynchronous Operations: The bot uses asynchronous functions to handle commands and events efficiently, ensuring smooth operation even under load.
This Discord bot serves as a powerful tool for server management, enhancing user engagement and providing essential moderation features. Its modular design allows for easy updates and expansions, making it a valuable asset for any Discord community.