Welcome to the "Wheel of Games" Bot! This bot helps you randomly choose games to play with your friends. The bot spins a virtual wheel and selects a game based on the number of players and a variety of other factors, ensuring a fun and fair game selection experience.
- Choose a game randomly based on player count.
- Skip or reject games with ease.
- Schedule events for the selected game.
- Mark game sessions as ignored for future selection.
Choose a game to play!
player_count
: Required – The number of players needed for the game. (e.g., 2, 4, 8)ignore_least_played
: Optional – A boolean flag to choose games other than the least played games. (default:False
)
- The bot will spin a wheel with eligible games based on the player count.
- You will be asked to confirm the selected game.
- If the game isn't suitable, you can choose another by rejecting the current selection.
- Once confirmed, an event can be scheduled for the game.
Mark a game log as ignored. This means that this play record won't count toward "times played" for a game.
Games are (by default) selected by their least played count.
game_name
: Required – The name of the game to mark as ignored.memory_date
: Optional – The specific date to mark as ignored (formatted asYYYY-MM-DD
). If None provided, all records are marked as ignored for the specified game.
List all available games and their details.
player_count
Optional - The number of players to list games that support that count.
- Displays a list of games, their last played date, the number of times played.
docker run -d \
--name wheel-of-games-bot \
-e DISCORD_TOKEN="your-bot-token" \
-v /path/to/your/config/folder:/app/config \
denizenn:wheel-of-games-bot:latest
Replace "your-bot-token" with your actual Discord bot token. This will run the bot as a detached container named wheel-of-games-bot with the specified bot token passed as an environment variable.
Replace "path/to/your/config/folder" with the location you'd like the bot to store its database.
- Python 3.9+
- Docker (if deploying in a container)
- A Discord bot token
- Clone the repository:
git clone https://github.com/your-repo/wheel-of-games-bot.git
cd wheel-of-games-bot - Install dependencies:
pip install -r requirements.txt
- Create a
.env
file:
DISCORD_TOKEN=your_discord_bot_token
- Run the bot:
python bot.py
- Build the Docker image:
docker build -t wheel-of-games-bot .
- Run the container:
docker run -e DISCORD_TOKEN=your_discord_bot_token wheel-of-games-bot
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature
). - Commit your changes (
git commit -am 'Add your feature'
). - Push to the branch (
git push origin feature/your-feature
). - Open a pull request.
This project is licensed under the AGPL-3.0 License – see the LICENSE file for details.
- Creator: ChatGPT with tweaks by @joeShuff
- Contributors: Open for contributions!