From 004cb2e50ba06c7e9a92b12ba57940987f305aaf Mon Sep 17 00:00:00 2001 From: Misha Date: Thu, 9 Nov 2023 12:33:53 +0200 Subject: [PATCH] Added very important spelling correction module --- modules/troll-spelling-corrector/index.py | 3 +++ modules/troll-spelling-corrector/meta.json | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 modules/troll-spelling-corrector/index.py create mode 100644 modules/troll-spelling-corrector/meta.json diff --git a/modules/troll-spelling-corrector/index.py b/modules/troll-spelling-corrector/index.py new file mode 100644 index 0000000..f381f00 --- /dev/null +++ b/modules/troll-spelling-corrector/index.py @@ -0,0 +1,3 @@ +def process(message, path): + if "силк" in message.text or "лінк" in message.text: + 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" +}