diff --git a/modules/troll-spelling-corrector/index.py b/modules/troll-spelling-corrector/index.py new file mode 100644 index 0000000..71d309d --- /dev/null +++ b/modules/troll-spelling-corrector/index.py @@ -0,0 +1,3 @@ +def process(message, path): + if "силк" in message.text.lower() or "лінк" in message.text.lower(): + return "*посилання 🌚", None diff --git a/modules/troll-spelling-corrector/meta.json b/modules/troll-spelling-corrector/meta.json new file mode 100644 index 0000000..c0ca195 --- /dev/null +++ b/modules/troll-spelling-corrector/meta.json @@ -0,0 +1,6 @@ +{ + "start_on_boot": true, + "alias": "troll-spelling-corrector", + "version": 2, + "index_file": "index.py" +}