Skip to content

Commit

Permalink
cleanup and copy update
Browse files Browse the repository at this point in the history
  • Loading branch information
gargmegham committed May 17, 2023
1 parent 8004550 commit ebef738
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 27 deletions.
11 changes: 4 additions & 7 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,12 @@ This repo is ChatGPT re-created as Telegram Bot. **And it works great.**

## Bot commands
- `/retry` – Regenerate last bot answer
- `/new` – Start new dialog
- `/help` – Show help
- `/register` - Registers patient in MySQL database with details like age, gender, medical history etc. using a ConversationHandler
- `/new` – Start fresh dialog
- `/help` – Show command options
- `/register` - Register patient in database with details like age, gender, medical history etc.
- `/cancel` - Cancel current conversation
- `/skip` - Skip a registeration step
- `/diagnose` - Diagnose a disease
- `/call` - Book an appointment, if not already booked
- `/end` - Ends the current conversation
- `/pay` - Pay for services
- `/choose_disease` - Choose a disease, and start it's diagnosis

## Setup
Expand All @@ -40,5 +37,5 @@ This repo is ChatGPT re-created as Telegram Bot. **And it works great.**

4. 🔥 And now **run**:
```bash
docker-compose --env-file config/config.env up --build
docker-compose --env-file config/config.env up --build -d
```
9 changes: 2 additions & 7 deletions bot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,16 @@ async def post_init(application: Application):
BotCommand(command="/help", description="Show available commands"),
BotCommand(
command="/call",
description="Book an appointment with recommended Dr., if not already booked",
description="Book an appointment with our recommended Dr.",
),
BotCommand(command="/cancel", description="Cancel current conversation"),
BotCommand(command="/start", description="Start the bot"),
BotCommand(
command="/register", description="Register yourself as a patient"
),
BotCommand(
command="/skip", description="Skip the current question and move on"
),
BotCommand(command="/diagnose", description="Diagnose a disease"),
BotCommand(command="/end", description="Ends the current conversation"),
BotCommand(
command="/choose_disease",
description="Choose a disease, and start it's diagnosis",
description="Choose a disease, and which fits your concern",
),
]
)
Expand Down
2 changes: 1 addition & 1 deletion bot/handlers/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async def help_handle(update: Update, context: CallbackContext):
user_id = update.message.from_user.id
mysql_db.set_attribute(user_id, "last_interaction", datetime.now())
await update.message.reply_text(
"""Hi! I'm <b>Maya</b> your personal medical assistant 🤖.\n⚪ /register - Register yourself as a patient\n⚪ /new - Start new conversation\n⚪ /retry - Regenerate last bot answer\n⚪ /cancel - Cancel current conversation\n⚪ /help - Show this help message\n⚪ /call - Book an appointment, if not already booked\n⚪ /choose_disease - Choose a disease, and start it's diagnosis""",
"""Hi! I'm <b>Maya</b> your personal medical assistant 🤖.\n⚪ /register - Register yourself as a patient\n⚪ /new - Start new conversation\n⚪ /retry - Regenerate last bot answer\n⚪ /cancel - Cancel current conversation\n⚪ /help - Show this help message\n⚪ /call - Book an appointment, if not already booked\n⚪ /choose_disease - Choose a disease, which best fits your concern""",
parse_mode=ParseMode.HTML,
)

Expand Down
12 changes: 0 additions & 12 deletions compose-dev.yaml

This file was deleted.

Binary file removed flow.pdf
Binary file not shown.

0 comments on commit ebef738

Please sign in to comment.