How zoeaika/chatbot_buddy works
Project type and purpose
• This is an open-source, rule-based chatbot CLI tool written in Python.
• Purpose: take user queries about cryptocurrencies and return advice based on sustainability, profitability, and market trends using predefined data and if-else rules.
File structure
• Top-level files:
• crypto_data.py – in-memory “database” of crypto metrics
• crypto_advisor.py – core chatbot logic and rule engine
• main.py – entry point that ties the CLI to the advisor logic
• test_bot.py – unit tests for conversation flows
• cryptobuddy (1).py – likely a duplicate or backup script (can be ignored or merged)
• No external services, no frameworks, purely built-in Python.
README for additional insights
• Architecture: monolithic, rule-based decision engine (if-else).
• Data: hard-coded list of crypto assets with sustainability and trend scores.
• Interaction pattern: user input → parsing → rule evaluation → formatted response.
• Future extension points: real-time API connectors, ML modules, GUI/web interface.
Essential elements to capture
• Clear labels: “CLI Handler”, “Rule Engine”, “Data Store”, “Test Harness”
• That the monolith runs as a single process