miraicle
miraicle copied to clipboard
一个基于 mirai-api-http 的轻量级 Python SDK
Now file uplaod api is /file/upload, and we don't need to read() after open file, otherwise the file name is always "file".
在机器人收到好友或者群聊邀请的时候,控制台都可以收到消息 'type': 'BotInvitedJoinGroupRequestEvent' 'type': 'NewFriendRequestEvent' 请问应该如何让机器人队如上类型的event做出反应?文档中并没有给出
使用nohup ./mcl & 在后台运行mcl之后,启动bot.py bot.py提示连接成功,但是无法接受群消息。  ---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)])
miraicle.Mirai() add new args :host update readme.md
看了下json的messageChain里是有Quote的类型的,但是似乎并没有提供相关的方法
我写了个任务计划插件,但是始终没有办法用我自己编写的 `group_switch.py` 去管理这个插件。详情如下: bot.py: ```python # -*- coding: UTF-8 –*- import miraicle from plugins import * qq = 123456789 # 我的QQ号 verify_key = '123' port = 8080 bot = miraicle.Mirai(qq...