This is a simple interactive bot named Xpo. The bot can greet users, guess their age, test their programming knowledge, and perform counting tasks. It also includes features like personalized greetings based on the time of day, error handling, and randomized test questions.
- Personalized Greeting: The bot greets users based on the time of day (morning, afternoon, evening).
- Name Remembrance: Users can choose whether the bot remembers their name during the session.
- Age Guessing: Xpo uses math tricks to guess the user's age based on their input.
- Counting Ability: The bot can count up to any number specified by the user.
- Programming Knowledge Test: A mini-quiz with randomized questions to test basic programming knowledge.
- User-friendly Interaction: Simple menu-based system that lets users choose actions.
- Error Handling: Handles invalid inputs gracefully during interaction.
- Clone this repository or download the Python script to your local machine.
- Run the
python
script using a terminal or your favorite IDE.
python SimpleBot.py
- Follow the prompts to interact with the bot.
- greet(bot_name, birth_year, creator_name): The bot introduces itself with a personalized greeting.
- remind_name(): Asks the user for their name and optionally remembers it.
- guess_age(): The bot guesses the user's age based on mathematical remainders.
- count(): The bot counts up to a number specified by the user.
- test(): A simple quiz to test the user's programming knowledge.
- end(): A closing message from the bot.
- Python 3.6 or later.
- Adding more interactive features like conversations on different topics.
- Expanding the quiz with more questions.
- Introducing a simple help system for users unfamiliar with the bot commands.
This repository is still under construction. But it is not open for contributions.
- dennismkaunda - Creator.