<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[easyMirai-Python基于Http快速创建🫠]]></title><description><![CDATA[<p dir="auto"><a href="https://sfnco.com.cn" target="_blank" rel="noopener noreferrer nofollow ugc"><img src="https://img.shields.io/badge/blog-@Sfnco-ff69b4.svg" alt class=" img-responsive img-markdown" /></a></p>
<p dir="auto"><img src="https://img.shields.io/github/languages/top/ExMikuPro/easyMirai" alt="替代文字" class=" img-responsive img-markdown" /></p>
<p dir="auto"><strong>注意</strong>：现阶段开发到<strong>Alpha</strong>版本，很多功能还未实现，仅供测试使用<br />
1.<strong>😶‍🌫️简介</strong></p>
<p dir="auto">这是一个突发奇想的项目🤔，最近在写一些比较小的QQ机器人项目为了快速出成品，于是基于<strong>mirai-http-api</strong>将请求数据进行<strong>打包</strong>成类。</p>
<p dir="auto">第一次写项目如有不足请见谅😩<span class="text-hov-hidden">两个人开发太难了QAQ</span></p>
<p dir="auto">本次Alpha v0.1版本使用的是<strong>http轮询</strong></p>
<p dir="auto"><strong>项目地址：</strong> <a href="https://github.com/ExMikuPro/easyMirai" target="_blank" rel="noopener noreferrer nofollow ugc">easyMirai</a><br />
<strong>文档地址：</strong> <a href="https://github.com/ExMikuPro/easyMirai/tree/master/Docs/v0.1-Doc.md" target="_blank" rel="noopener noreferrer nofollow ugc">easyMirai-Doc</a></p>
<p dir="auto">2.<strong>📯维护情况</strong><br />
此项目在不久前<span class="text-hov-hidden">(2022/05/15)</span>开始</p>
<ul>
<li>2022/05/17 制作出第一个Alpha版本(Alpha v0.1)</li>
<li>后续Alpha，Bata，发行版将陆续推出😵‍💫</li>
</ul>
<p dir="auto">3.<strong>🌰子</strong><br />
这是一个实现好友消息复读的</p>
<pre><code class="language-python">import easyMirai

if __name__ == '__main__':
    mirai = easyMirai.Mirai("YouHost", "YouPort", "YouKey", "YouQid")
    print(mirai.begin())
    while True:
        mirai.delay()
        if mirai.getCountMessage()['data'] != 0:
            message = mirai.getFetchLatestMessageFormat()
            if message['From'] == "FriendMessage":
                msg = {'type': 'Plain', "text": message['Plain'][0]}
                mirai.sendFriendMessage(msg, message['Sender'])
</code></pre>
<p dir="auto">4.<strong>🫥下一版本计划</strong><br />
完善&amp;实现<strong>更多</strong>的接口功能，一起努力！好诶！</p>
<p dir="auto">5.<strong>👻关于后续</strong><span class="text-hov-hidden">是的没错这个有后续</span><br />
完成http轮询后将加入<strong>websocket</strong>通信方式</p>
]]></description><link>https://mirai.mamoe.net/topic/1206/easymirai-python基于http快速创建</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Mar 2026 07:58:27 GMT</lastBuildDate><atom:link href="https://mirai.mamoe.net/topic/1206.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 17 May 2022 07:53:09 GMT</pubDate><ttl>60</ttl></channel></rss>