Akki-jaiswal / Akki-jaiswal/fitness-chatbot

[Refactor] Decouple Chatbot Rules to JSON Configuration

Aperta
#65 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
HTML
Stelle
5
Fork
16
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by reading bot.py and locating the hardcoded chatbot_rules dictionary and the application startup path. Create intents.json with the existing rule structure, then verify that bot.py loads it at startup and the chatbot behavior remains unchanged.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
backend
Tipo di issue
Refactoring
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.