Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rwolf2467 committed Nov 23, 2024
2 parents f3ac895 + 28d18a5 commit 30a37bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions json/goodwords.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"be",
"bei",
"bet",
"bitte",
"alt",
"bett",
"bigger",
"bis",
Expand Down
2 changes: 1 addition & 1 deletion server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 30a37bf

Please sign in to comment.