rumdood / Moneo

Telegram Bot for Managing Scheduled Tasks and Reminders
MIT License
2 stars 0 forks source link

Adding support for inference of commands #22

Closed rumdood closed 6 months ago

rumdood commented 6 months ago

There wasn't an issue created for this, but using voice commands in CarPlay or Android Auto makes sending slash commands (e.g. "/complete my task") insanely difficult, so this adds the ability for the bot to try and determine if you're trying to run a known command without the slash.

E.G.:

User: complete call doctor Bot: Did you want to "/complete call doctor"? User: yes Bot: [call doctor completed response]

User: Complete garbage Bot: Did you want to "/complete garbage"? User: no Bot: I'm not sure what to do then. [bot returns to default waiting state]