forked from mttu-developers/konabot
怪话不可为空!!!
This commit is contained in:
@ -31,7 +31,7 @@ evt_collector = on_message(rule=is_collect_target)
|
|||||||
@evt_collector.handle()
|
@evt_collector.handle()
|
||||||
async def _(msg: UniMsg):
|
async def _(msg: UniMsg):
|
||||||
txt = msg.extract_plain_text()
|
txt = msg.extract_plain_text()
|
||||||
if len(txt) > 50:
|
if len(txt) > 50 or not txt.strip():
|
||||||
return
|
return
|
||||||
if txt.startswith("说点怪话") or txt.startswith("说些怪话") or txt.startswith("怪话过滤"):
|
if txt.startswith("说点怪话") or txt.startswith("说些怪话") or txt.startswith("怪话过滤"):
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user