Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e55bdbdf4a |
@ -31,7 +31,7 @@ evt_collector = on_message(rule=is_collect_target)
|
||||
@evt_collector.handle()
|
||||
async def _(msg: UniMsg):
|
||||
txt = msg.extract_plain_text()
|
||||
if len(txt) > 50:
|
||||
if len(txt) > 50 or not txt.strip():
|
||||
return
|
||||
if txt.startswith("说点怪话") or txt.startswith("说些怪话") or txt.startswith("怪话过滤"):
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user