Overview
Prank-Bot-for-Discord is a Python bot using Discord.py to run lighthearted pranks via two slash commands. It enhances fun and camaraderie in Discord servers.
Through `/prank` and `/stopprank`, the bot moves users to a target channel and plays audio, combining event-driven design with safe permission checks. :contentReference[oaicite:0]{index=0}
Key Features
- `/prank`: moves a user to a designated channel and plays an audio file. :contentReference[oaicite:1]{index=1}
- `/stopprank`: halts pranking and removes user from the prank list. :contentReference[oaicite:2]{index=2}
- Simple setup via environment variables for token and audio path. :contentReference[oaicite:3]{index=3}
- Audio playback relies on FFmpeg installation. :contentReference[oaicite:4]{index=4}
Purpose & Vision
The bot’s purpose is to spark spontaneous fun in communities by allowing playful pranks, all managed with server permissions and controlled execution.
The vision is to expand into more command-based jokes, richer media pranks, and easily configurable prank routines that remain safe and enjoyable.
Technologies Used
- Python — Primary development language. :contentReference[oaicite:5]{index=5}
- Discord.py — Event-driven framework for building slash commands. :contentReference[oaicite:6]{index=6}
- FFmpeg — Handles audio playback during pranks. :contentReference[oaicite:7]{index=7}
- .env (environment variables) — For secure configuration of token and file paths. :contentReference[oaicite:8]{index=8}
Workflow
- Clone repo and install dependencies via `requirements.txt`. :contentReference[oaicite:9]{index=9}
- Set `DISCORD_TOKEN` and `AUDIO_FILE_PATH` in a `.env` file. :contentReference[oaicite:10]{index=10}
- Ensure FFmpeg is installed for audio support. :contentReference[oaicite:11]{index=11}
- Run `main.py` to connect bot to Discord. :contentReference[oaicite:12]{index=12}
- Issue `/prank @user` or `/stopprank @user` to trigger actions. :contentReference[oaicite:13]{index=13}
Results & Impact
- Enables immediate, server-friendly pranks with minimal effort.
- Encourages lively interaction via audio and dynamic user movement.
- Requires simple configuration for quick setup and deployment.
Future Enhancements
- Add customizable prank messages or audio clips per user or server.
- Include schedule-based or timed pranks for surprise effects.
- Support moderation-friendly controls like prank cooldowns or role-based access.
Conclusion
Prank-Bot-for-Discord is a lightweight Discord bot built for fun, enabling playful pranks safely and simply. Its clear structure makes it easy to extend and enjoy.