Marvin is a command-line chatbot assistant written in Python. It provides an interactive menu where users can perform various tasks such as temperature conversion, text manipulations, inventory management, and random quotes.
- Interactive Menu – Navigate through different chatbot functionalities.
- Inventory System – Add, remove, and list items.
- Quote Generator – Get random quotes from The Hitchhiker's Guide to the Galaxy.
- Text-based Utilities – Convert text, manipulate words, check for isograms, and more.
- Randomized Mood Messages – Generates dynamic text based on moods and smileys.
git clone https://github.com/YOUR_USERNAME/Python-Chatbot-Marvin.git
cd Python-Chatbot-MarvinEnsure you have Python installed (version 3.x recommended).
python3 main.pyOnce the script is running, you will see an ASCII art of Albert (Marvin's alias) and a menu with options.
- Select a number from the menu to perform an action.
- Type
qto quit the program. - Use
inv pick ITEMto add an item to your inventory. - Use
inv drop ITEMto remove an item.
Hello my name is Albert. I know about everything in the world. What can I do for you?
1) Present yourself to Marv Albert.
2) Celsius to Fahrenheit.
3) Multiply a word.
...
inv pick Sword
inv drop Shield
q
📂 Python-Chatbot-Marvin
├── 📄 main.py # Main script with menu handling
├── 📄 marvin.py # Core chatbot functions
├── 📄 inventory.py # Inventory management system
├── 📄 menyval12.py # Randomized text generator
├── 📄 quote.py # Quote generator module
├── 📄 quotes.txt # File containing quotes
├── 📄 format.txt # Text format template
└── 📄 inv.data # Inventory data storage
Feel free to fork the repository and contribute by submitting pull requests. Suggestions and improvements are always welcome!
This project is open-source and available under the MIT License.
✨ Don't panic! Just let Marvin do the thinking.