nicolabs / nicobot

🤟 A collection of *cool* chat bots 🤟
MIT License
1 stars 0 forks source link

Add '--pattern' parameter to specify a regex trigger #66

Open nicobo opened 3 years ago

nicobo commented 3 years ago

Currently there are :

a. commands to explicitly translate a text b. keywords to implicitly translate the whole message containing them

Keywords are simple words that are :

  1. translated into any known language
  2. transformed into a regex

Allow specifying directly the regex that will trigger an implicit translation, rather than a indirect list of keywords. Keywords should then just be a input to generate a list of such patterns.