Skip to main content

帮助QBot开发者快速构建简单的QQ机器人

Project description

easyMirai 2.25.36

介绍本项目的注意事项&主体结构

注意本项目基于开源软件 Mirai 进行二次开发

目前easyMirai已经进入全新的2.0时代!!🥳

注意⚠️:不与1.0版本相兼容 1.0版本将停留在1.19.36 LTS版本

目录

  1. 案例
  2. 调用
  3. 声明

案例

这是一个简单的调用例子,实现了发送普通文字的功能

import easyMirai
if __name__ == '__main__':
    mirai = easyMirai.Mirai("YouHost", "YouPort", "YouQid", "YouKey")
    mirai.send.friend(12345678).plain("hello world!").dictionary

很好理解吧....(大概) 更多案例请查阅 Example 目录,我们将持续更新相关案例,以方便调用!

⬆ back to top

调用

pip3 install easyMirai

关于调用问题一定要实例化后进行对于数据的操作!

# bad
if mirai.get.message.peek(1).dictionary == "text":
    ...
# good
message = mirai.get.message.peek(1).dictionary
if message == "text":
    ...

⬆ back to top

声明

本项目基于开源软件 Mirai 进行二次开发

不得扭曲或隐藏免费且开源的事实 本项目使用AGPLv3

关于文档👩‍💻&🧑‍💻正在抓紧完善,会尽快发布~ TestProject里存放着历代测试开发版本,即最原始版本(不建议使用仅🉑️用来学习使用)

此项目创建于2022.05.15,如果出现开发程序上的各种问题欢迎在issues发布!

⬆ back to top

easyMirai@ExMikuPro&HexMikuMax

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

easyMirai-2.26.36-py3-none-any.whl (36.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page