semvec/pypi-packages huggingface dataset:
decoderbot 1.0.0
A simple trainable chatbot using OOP in Python
License: MIT
Requires Python: >=3.6

# 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)