A musical companion for Discord, bringing the spirit of a tavern bard to your voice channels!
Bumbling Bard is a Discord bot designed to enhance your server with a variety of entertainment and utility features. It allows users to:
- Play music: Search for and play songs from YouTube and Spotify directly into voice channels.
- Manage Playlists: Create, save, and manage song queues.
- Dice Rolling: Roll various types of dice for tabletop-style games or random outcomes.
- NPC Generation: Generate random non-player characters with basic traits.
- Loot Tables: Generate loot based on specified rarity or a general table.
- Interactive Menus: Use engaging interactive menus for certain commands, enhancing the user experience.
Here's a taste of what Bumbling Bard can do:
-
Music Magic:
- Use
b!sing <song name/URL>
to play songs from YouTube or Spotify. - Manage playback using queueing, pausing, and skipping commands.
- Use
-
Tavern Time:
- Use
b!tavern
to access an interactive menu for exploring taverns, getting drinks, and interacting with your surroundings.
- Use
-
Dice Rolls:
- Use
b!roll <dice notation>
(e.g.,b!roll 1d20
,b!roll 2d6+2
) to roll various dice combinations.
- Use
-
NPC Generator:
- Use
b!npc
to generate a random non-player character.
- Use
-
Loot Generation:
- Use
b!loot
to generate a random loot table.
- Use
Follow these instructions to get Bumbling Bard running on your Discord server:
- Python 3.7 or higher: Make sure you have a compatible version of Python installed.
- Discord Bot Token: Create a Discord bot application on the Discord Developer Portal and obtain its bot token.
- Spotify API Credentials: Create a Spotify developer application and obtain its Client ID and Client Secret.
- Clone the repository:
git clone https://github.com/Yoguti/hosting-bardbot.git
- Navigate to the project directory:
cd hosting-bardbot
- Create a virtual environment (optional, but recommended):
python3 -m venv venv
- Activate the virtual environment:
- On Linux/macOS:
source venv/bin/activate
- On Windows:
venv\Scripts\activate
- On Linux/macOS:
- Install the requirements:
pip install -r requirements.txt
-
Create a
.env
file: Create a.env
file in the project root. -
Add your secrets: Add the following content to the
.env
file, replacing the placeholders with your actual tokens and credentials:DISCORD_TOKEN=YOUR_DISCORD_BOT_TOKEN SPOTIFY_CLIENT_ID=YOUR_SPOTIFY_CLIENT_ID SPOTIFY_CLIENT_SECRET=YOUR_SPOTIFY_CLIENT_SECRET
-
Run the bot:
python bard.py
The bot should now be online and ready to receive commands in your Discord server.
Contributions to this project are welcome! If you have any feature requests or bug reports, please submit them as issues or pull requests.
This project is licensed under the MIT License. You are free to use, copy, modify, and distribute this software as long as you include the original copyright notice and license in any copies. For more details, see the LICENSE file.