Giter Site home page Giter Site logo

e-mirai's Introduction

e-mirai

基于mirai-http-api的epl sdk

注意

本项目目前暂停维护,源码中部分写法或许已经过时。

如需编写Mirai插件,请改用其他编程语言。

开始

1.环境配置

(1)安装mirai-console-loader并启动。

(2)导入http-api插件,并记录下端口及Key值。

(3)在Console终端登录bot。

2.开始开发

(1)新建e程序文件。

(2)导入e-mirai模块,在"Mirai.初始化"方法中填入本机ip与端口以及刚刚记录下的Key值。

(3)开始开发,你可以通过"示例.e"学习基本用法。

已实现功能

  • 群和好友消息发送

  • 复杂消息构造(包括引用回复、图片消息、At消息、闪图、XML等)

  • 图片上传

  • 消息撤回

  • 好友取备注、昵称等操作

  • 群禁言、移除等操作

  • 群和好友消息监听

  • 群禁言,入群等事件监听

待实现功能

  • 好友变动,机器人变动各类事件监听

已知问题

进行消息监听时会有几率发生闪退。

原项目

mirai: 多平台 QQ Android 和 TIM PC 协议支持库与高效率的机器人框架.

e-mirai's People

Contributors

only52607 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

e-mirai's Issues

CPU跑满解决方案

Mirai类里的thread_messageListener方法里“延迟 (_eventListener_interval)”改成“延时 (_eventListener_interval)”

易语言执行“延迟”时CPU满载

做出来的程序很占cpu

如题,做出来的插件很耗cpu,直接卡死学生机,示例那里编译出来的也一样,一运行监听直接跑满cpu了,这是怎么回事呢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.