Metadata-Version: 2.4
Name: decoderbot
Version: 1.0.0
Summary: A simple trainable chatbot using OOP in Python
Author: Unknown Decoder
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: license
Dynamic: license-file
Dynamic: requires-python
Dynamic: summary

# DecoderBot 🤖

> A lightweight Python chatbot that responds to messages using exact or close matches with `difflib`.

![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)
![Made with ❤️ by Unknown Decoder](https://img.shields.io/badge/Made%20by-Unknown%20Decoder-ff69b4)

---

## 💡 What is DecoderBot?

DecoderBot is a simple Python class that lets you build a chatbot that replies to input messages based on:
- **Exact matches** (like `"hello"`)
- **Closest matches** (like `"helo"` → `"hello"`), if `difflib` is available

No extra libraries. No nonsense. Just logic.

---

## 🚀 Features

- 🧠 Exact and fuzzy response matching
- 🛠️ Add or update responses easily
- 📦 Zero external dependencies
- 🔥 Lightweight and fast

---

## 🛠️ How to Use

### 1. Clone or download the `chatbot.py` file.

### 2. Import and use it in your project:

```python
from chatbot import ChatBot

bot = ChatBot("DecoderBot")

# Add a custom response
bot.add_response("yo", "What's up?")

# Get exact match response
print(bot.get_response("yo"))  # Output: What's up?

# Get a close match response (e.g. "helo" → "hello")
try:
    print(bot.get_closest_response("helo"))
except Exception as e:
    print(e)
