echo-bot is a simple command-line chatbot designed for quick and interactive conversations directly in your terminal.
- Python ^3.13 (Download Python)
- Poetry 2.0 (Poetry installation guide)
Clone the repository and install dependencies:
git clone https://github.com/rcw3bb/echo-bot.git
cd echo-bot
poetry installEnsure that a GITHUB_TOKEN environment variable is in your system with your GitHub Models API token:
GITHUB_TOKEN=your_github_models_token_hereRun the chatbot in your terminal:
poetry run python -m echo_bot- Type your message and press Enter to chat.
- Type
exitorquitto leave the chatbot. - Type
/resetto clear the conversation context and start a new session.
- All source code is in the
echo_botpackage. - Tests are in the
testspackage.
Run all tests and generate an HTML coverage report:
poetry run pytest --cov=echo_bot tests --cov-report htmlOpen htmlcov/index.html to view the coverage report.
Format and lint the code in one step:
poetry run black echo_bot && poetry run pylint echo_botSee CHANGELOG.md for release history.
This project is licensed under the MIT License - see the LICENSE.md file for details.
Ron Webb