A fun, safe prank bot to spark playful interactions and boost activity in your server!
Detailed Description for Your Discord Prank Bot This Discord bot is designed to foster playful and respectful interaction among server members by enabling a safe and lighthearted prank feature through direct messaging. The bot allows users to send prank requests to their friends on the server, encouraging engagement and fun while ensuring respect and user consent.
Key Features:
Direct Message Prank Requests: Users can send a prank invitation to another member using the !prank @user command. The recipient receives a DM explaining the prank request along with clear instructions on how to accept (!start) or decline (!stop) the prank, maintaining respect and choice.
Opt-In Persistent Messaging: When a user accepts a prank by sending !start, they are added to a persistent list stored in a local file (continue.txt). This ensures that the bot remembers who opted in, even if restarted, and repeatedly sends them a predefined prank message (DM_MESSAGE) every 6 seconds, simulating a harmless prank.
Opt-Out Support: Users can stop the repeated prank messages at any time by sending !stop, which removes them from the active prank list and ceases further messaging, giving full control to participants.
Robust User Management: The bot safely handles the persistence of users opting in or out using file read/write operations with error handling to avoid crashes or data loss.
Permission & Privacy Awareness: The bot gracefully manages situations where it cannot send DMs (e.g., if a user has DMs disabled) by catching exceptions and notifying the command issuer, ensuring smooth user experience without interruptions.
Moderation Safety Checks: The prank command prevents users from pranking themselves and provides friendly feedback, maintaining fairness and avoiding abuse.
Logging for Transparency: Console output logs key events such as user additions/removals from the prank list and message sends, facilitating debugging and monitoring of bot activity.
How It Works:
A user sends a prank request to a friend using the !prank @friend command.
The friend receives a DM inviting them to accept or decline the prank.
If the friend replies with !start, the bot begins sending a repeated prank message every few seconds.
The friend can stop the prank anytime with !stop.
All users who opted in are saved to a file so the bot remembers them even after restarting.
0
0 reviews
Reviews can be left only by registered users. All reviews are moderated by Top.gg moderators. Please make sure to check our guidelines before posting.
5 stars
0
4 stars
0
3 stars
0
2 stars
0
1 star
0
No reviews here yet!