Comments (5)
需要细化. 目前想到的问题可能包括:
- 如何删除添加的任务?
可能: 添加任务接口返回任务的 ID, 提供根据 ID 删除任务的接口. - 是否能够支持持久化?
如果支持, 能否做到重启前后 ID 不变? - 在添加的任务函数里能使用哪些对象?
from sealdice-core.
滋瓷!
from sealdice-core.
2. 是否能够支持持久化
Go 不支持持久化一个 callable 吧?有什么 workaround 么?
from sealdice-core.
- 是否能够支持持久化
Go 不支持持久化一个 callable 吧?有什么 workaround 么?
所以我才让ID来补充描述……
他的详细设计不需要持久化 callable。插件不能动态地使用这里的定时器,而是只从这里获取打点。以定时任务举例,插件可能只注册一个 * * * * *
的定时器,并在每次打点时轮询任务。
from sealdice-core.
是的,我之前设想的只是提供一个获取打点的机制。
- core 中有个公共的 cron 用于提供计时。
- 每个插件可以通过参数获取不同频率的打点,至于获取打点后的逻辑如何处理都交给插件自行处理。
from sealdice-core.
Related Issues (20)
- [150 Bug]: st <属性>±<表达式> 出错 HOT 1
- [150 Bug]: buff 指令未进行技能加值计算 HOT 2
- [Bug](dnd): 正则表达式有误 HOT 1
- [Bug]: 在帮助文档中引用出现多余的{内容}{内容}{内容}
- [Bug]: 同用数据库的海豹在一个群时,该群log会不定时消失 HOT 2
- [150 Bug]: JS api `seal.format()` 行为与旧版本表现不一致
- [150 Bug]: st show 中计算变量不应直接结果,应写为原始算式
- [150 Bug]: js插件若对指令开启代骰,则seal.format()获取到的值为被艾特者而非触发者的变量值
- [Bug]: 未使用的插件配置项仍会展示为使用中
- #919
- [Bug]: 上传多个js非指令关键词插件时导致ext.storageSet()的数据全部串到其中某一个插件的数据库内 HOT 6
- [Bug]: 错误用法 `st 属性+'字符串'` 时错误提示信息不足
- [Bug]: 在不明情况下会导致无法向q群内发送判断结果
- [Bug]: 在不明情况下会导致海豹骰无法向q群内发送判断结果 HOT 3
- [Bug]: 官方机器人适配问题?
- [Feat](DnD) 通过 init del 删除当前角色后也触发 init ed 的提示词(先攻_下一回合)
- [150 Bug]: 重构后 DiceFormatTmpl 对于特定自构造 MsgContext 崩溃 HOT 1
- [150 Req] 骰点表达式美观度需求
- [150 Bug]: CoC 和 DnD 规则对 int 和 str 进行检定时报错 HOT 1
- [150 Bug]: CoC 规则进行理智鉴定时大失败未按最高数值扣除理智
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 sealdice-core.