diff --git a/json/goodwords.json b/json/goodwords.json index 138cea0..d40de53 100644 --- a/json/goodwords.json +++ b/json/goodwords.json @@ -12,6 +12,8 @@ "be", "bei", "bet", + "bitte", + "alt", "bett", "bigger", "bis", diff --git a/server.py b/server.py index 6acc2b7..b2cafef 100644 --- a/server.py +++ b/server.py @@ -36,7 +36,7 @@ def save_data(file_path, data): ] -def check_chatfilter(input_str: str, badwords, goodwords, cid: int, gid: int): +def check_chatfilter(input_str: str, badwords, goodwords): threshold: int = 1 if len(input_str) < 50 else 2 input_data = input_str.lower().split()