Akki-jaiswal / Akki-jaiswal/fitness-chatbot

[Refactor] Decouple Chatbot Rules to JSON Configuration

Offen
#65 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
HTML
Sterne
5
Forks
16
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

**Description:** The chatbot_rules dictionary is currently hardcoded inside bot.py. This makes the code difficult to maintain and mixes data with logic. If we want to add new intents or responses, we have to modify the main application logic.

**Goal:** Move the configuration data out of the Python file and into a dedicated data file.

Tasks:

- Create a new file named intents.json.
- Move the chatbot_rules dictionary structure into the JSON file.
- Update bot.py to import the json library.
- Modify bot.py to load rules from intents.json at startup.

Please assign it to me!

~@aaditya8979

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.