A fun Discord bot that provides Truth or Dare commands, including special BedWars-themed questions and challenges.
/truth- Get a random truth question/dare- Get a random dare challenge/truth-bedwars- Get a BedWars-themed truth question/dare-bedwars- Get a BedWars-themed dare challenge- Rotating status messages
- Slash command support
- Python 3.8 or higher
- A Discord account
- A Discord bot token
-
Clone or download this repository
-
Install required dependencies:
pip install discord.py python-dotenv-
Create a Discord bot:
- Go to the Discord Developer Portal
- Click "New Application" and give it a name
- Go to the "Bot" section and click "Add Bot"
- Copy the bot token
-
Set up your environment variables:
- Create a
.envfile in the project directory - Add your Discord token:
DISCORD_TOKEN=your_bot_token_here - Create a
-
Invite the bot to your server:
- In the Developer Portal, go to "OAuth2" > "URL Generator"
- Select scopes:
botandapplications.commands - Select bot permissions:
Send Messages,Use Slash Commands - Copy the generated URL and open it in your browser
- Select your server and authorize the bot
Run the bot:
python bot.pyYou should see "Bot is ready" in the console when it successfully connects.
All commands use Discord's slash command system. Type / in any channel where the bot has access to see available commands:
/truth- Receive a random truth question/dare- Receive a random dare challenge/truth-bedwars- Get a Minecraft BedWars-themed truth question/dare-bedwars- Get a Minecraft BedWars-themed dare challenge
401 Unauthorized Error:
- Your bot token is invalid or expired
- Go to the Discord Developer Portal and reset your token
- Update the
.envfile with the new token
Bot not responding to commands:
- Make sure the bot has proper permissions in your server
- Ensure slash commands are synced (happens automatically on bot startup)
- Check that the bot is online in your server
Commands not showing up:
- Wait a few minutes after the bot starts for Discord to sync commands
- Try restarting the bot
This project is open source and available for personal use.