Comments (8)
+和plus的参数为MiraiCodeable类型,即可以传入Image,string和LightApp类型
from miraicp.
from miraicp.
from miraicp.
from miraicp.
from miraicp.
from miraicp.
谢谢您的解答。最后我想知道一点的是,每条消息都会触发一次消息事件,如果第一次没有处理完然后来了新的消息,那么会因此中断第一次消息的执行吗。如果都会执行完,那这两个一起执行的事件是在一个线程中处理的吗
…
------------------ 原始邮件 ------------------ 发件人: "Eritque arcus"<[email protected]>; 发送时间: 2021年3月5日(星期五) 下午5:27 收件人: "Nambers/MiraiCP"<[email protected]>; 抄送: "379173433"<[email protected]>; "Author"<[email protected]>; 主题: Re: [Nambers/MiraiCP] 希望能够增加mirai的消息链构造 (#7) 不需要应该 这个延时就是在kt部分运行一个延时执行函数然后再广播延时结束事件,然后我提供了个id参数,也就是说你可以通过在延时那传入不同的自定义id来然后在事件那接受id并区分要执行什么功能,目前这个延时是一次性的,后面可能会考虑加周期性执行或定时执行,从kt调用而不是cpp延时主要是为了省去多线程和缓存jvm对象的麻烦
------------------ Original ------------------ From: ARKMIO <[email protected]> Date: Fri,Mar 5,2021 5:17 PM To: Nambers/MiraiCP <[email protected]> Cc: Eritque arcus <[email protected]>, Comment <[email protected]> Subject: Re: [Nambers/MiraiCP] 希望能够增加mirai的消息链构造 (#7) 上面消息没有打完。。。是不是意味着,我写的延时事件,必须是可重入的。
------------------&nbsp;原始邮件&nbsp;------------------ 发件人: "Eritque arcus"<[email protected]&gt;; 发送时间: 2021年3月5日(星期五) 下午5:07 收件人: "Nambers/MiraiCP"<[email protected]&gt;; 抄送: "379173433"<[email protected]&gt;; "Author"<[email protected]&gt;; 主题: Re: [Nambers/MiraiCP] 希望能够增加mirai的消息链构造 (#7) 下个版本可以通过+和.plus构造 +和plus的参数为MiraiCodeable类型,即可以传入Image,string和LightApp类型 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
我觉得应该是在一个线程里,然后基于kt里的协程来协调,因为在kt上游部分调用jni的时候应该不存在同时调用,调用的地方是在消息监听里,而消息监听在mirai是基于kt的协程协调如果没记错
from miraicp.
726f8cf,已添加
from miraicp.
Related Issues (20)
- 重构CPP到下一个大版本3.*, 同时这个2.*版本也会继续维护(修复一些提交的问题), 但是不会更新其他功能(会尽量不写太多API change, 但是为了优化使用, API change是必要的), 大概包含以下几点
- miraicode解析对at出错 HOT 2
- 重载插件后,先前的计时器会被保留 HOT 3
- 获取所有在线的bot
- MemberLeaveEvent 构造函数异常 HOT 2
- version `GLIBC_2.33' not found HOT 2
- 想问应该如何恰当实现定时任务 HOT 2
- 通过MessageSource获取发送人、消息内容等信息 HOT 1
- schedule 占用 cpu 过多 HOT 2
- 无法获取文件列表 HOT 1
- Compiler Warning (level 1) C4251
- BotOnline事件不触发 HOT 4
- 点歌点不了 HOT 1
- MemberJoinEvent触发报错groupid is required to construct member, plz contact MiraiCP HOT 1
- 对mirai 2.15.0的支持 HOT 1
- 注册指令导致的错误 HOT 6
- CI检测commit message跳过执行构建
- 对动画表情的发送似乎不正确 HOT 1
- 更新java -jar MiraiCP.jar -g生成的config
- MiraiCP无法正常退出
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from miraicp.