This is a Discord bot written in Python that hosts a quiz game with questions and answers on from the RSGB Amateur Radio Examination questions list. The bot randomly selects questions from a predefined quiz data set and prompts users to answer them within a specified time limit.
- Hosts a quiz game on a Discord server.
- Randomly selects questions from a predefined set.
- Allows users to answer questions within a specified time limit.
- Provides feedback on correct and incorrect answers.
-
Clone this repository to your local machine:
git clone https://github.com/HamHangOut/hammy-mchamilton.git
-
Navigate to the project directory:
cd hammy-mchamilton
-
Install the required dependencies:
pip install -r requirements.txt
-
Set up a Discord bot and obtain its token.
-
Create a
.env
file in the project directory and add your Discord bot token:TOKEN=your_discord_bot_token
-
Run the bot:
python main.py
Once the bot is running and connected to your Discord server, users can start a quiz by sending the !quiz
command in any text channel where the bot is present.
Contributions are welcome! If you have any suggestions, bug fixes, or feature implementations, please feel free to open an issue or create a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.