Skip to content

ameyvaidya44/bugbyte

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BugByte Discord Bot

A fun Discord bot that provides Truth or Dare commands, including special BedWars-themed questions and challenges.

Features

  • /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

Prerequisites

  • Python 3.8 or higher
  • A Discord account
  • A Discord bot token

Installation

  1. Clone or download this repository

  2. Install required dependencies:

pip install discord.py python-dotenv
  1. 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
  2. Set up your environment variables:

    • Create a .env file in the project directory
    • Add your Discord token:
    DISCORD_TOKEN=your_bot_token_here
    
  3. Invite the bot to your server:

    • In the Developer Portal, go to "OAuth2" > "URL Generator"
    • Select scopes: bot and applications.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

Usage

Run the bot:

python bot.py

You should see "Bot is ready" in the console when it successfully connects.

Commands

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

Troubleshooting

401 Unauthorized Error:

  • Your bot token is invalid or expired
  • Go to the Discord Developer Portal and reset your token
  • Update the .env file 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

License

This project is open source and available for personal use.

Releases

No releases published

Packages

 
 
 

Contributors

Languages