From 1e285b4c78e2f76699972ae945f9c3fc391844b9 Mon Sep 17 00:00:00 2001 From: Soumt Nam Date: Sun, 1 Oct 2023 20:51:50 +0900 Subject: [PATCH] fix: K-Josa module fix --- modules/KJosa.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/KJosa.py b/modules/KJosa.py index 8eabfc8..6561d44 100644 --- a/modules/KJosa.py +++ b/modules/KJosa.py @@ -9,12 +9,12 @@ class KJosa(ModuleInterface): self.funcs["process_josa"] = self._process print("[K-Josa] Korean postposition processor, K-Josa V1 loaded.") - + async def execute_module(self, ctx: Note): pass def _process(self, w, t, f): - return (w + ((t if (ord(w[-1])- 44032 % 28 == 0) else f ) if (44032 <= ord(w[-1]) <= 55203) else f"{t}({f})")) if t and f else w + return (w + ((t if ((ord(w[-1])- 44032) % 28 != 0) else f ) if (44032 <= ord(w[-1]) <= 55203) else f"{t}({f})")) if (t and f) else w def module_ready(self): print("[K-josa] Module Ready.")