Excaive / miraicle

一个基于 mirai-api-http 的轻量级 Python SDK
GNU Affero General Public License v3.0
54 stars 10 forks source link

使用nohup ./mcl & 后台挂起MCL后 receiver无法接受QQ消息 #20

Open WendellZ524 opened 2 years ago

WendellZ524 commented 2 years ago

使用nohup ./mcl & 在后台运行mcl之后,启动bot.py bot.py提示连接成功,但是无法接受群消息。 OOXILM{J34O93@I7EP9D2F

---code---

@miraicle.Mirai.receiver('GroupMessage') def hello_to_group(bot: miraicle.Mirai, msg: miraicle.GroupMessage): print(msg.plain) if msg.plain in ['Hello', 'hello']: bot.send_group_msg(group=msg.group, msg=[miraicle.Plain('Hello world!'), miraicle.Face().from_face_id(74), miraicle.At(qq=msg.sender)])