From 08672bdbbe1640b4e71d5c24832095af205f5ffd 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..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" +} -- 2.40.1