| def is_spam(message: str) -> bool: | |
| import re | |
| # Pattern check for spam keywords | |
| spam_patterns = [ | |
| "์ ์ฅ๋ฒํธ", | |
| "ํฌ์", | |
| "์ํ๊ฐ", | |
| "์์ต", | |
| "์ถ์ฒ", | |
| "๊ด๊ณ ", | |
| "๊ณ์ข", | |
| "์ถํ", | |
| "๊ณต๊ฐ", | |
| "์ ๋ฌผ", | |
| "์ฟ ํฐ", | |
| "์คํ", | |
| "๋ฌด๋ฃ๊ฑฐ๋ถ", | |
| "https?:\/\/", | |
| "์ฃผ์", | |
| "ํฌ์๋ฐ", | |
| "%" | |
| ] | |
| # Check for the presence of spam keywords using regex | |
| for pattern in spam_patterns: | |
| if re.search(pattern, message): | |
| return True | |
| return False |