lipraty / koishi-plugin-sleep-manage Goto Github PK
View Code? Open in Web Editor NEWManage your sleep time with Koishi Bot!
License: MIT License
Manage your sleep time with Koishi Bot!
License: MIT License
参考 文档,默认长度为 10,不够 timestamp 用的,需要 13 位
还是不会用这个插件,感觉启用了没什么改变
一、增加数据统计
二、简化流程,增加只发送晚安,自动侦测早安的开关(总开关/各群独立皆可)
逻辑思路例如:发送晚安后自动侦测下一条任意消息记录,若为1小时内则刷新时间记录,直到下一条消息间隔为3小时以上(不要求为早安),bot发送“早安!你的睡眠时间是10小时10分钟,你是今天第10个起床的”。
三、增加更多匹配词(配置项(总开关/各群独立皆可))
例如(以下皆摘自atri):
"早安", "早哇", "早上好", "ohayo", "哦哈哟", "お早う", "早好", "早", "早早早"匹配早安;
"晚安", "oyasuminasai", "おやすみなさい", "晚好", "晚上好"匹配晚安。
延伸:在响应早安晚安时可以输出一些根据时间的随机文案。
例如(以下改自atri):
“啊......早上好...(哈欠),今天你睡了6小时6分钟,呼啊啊~~~~再多睡会儿吧~”
“早个啥?今天你睡了12小时,你是猪吗这么能睡!哼!我都准备洗洗睡了!”
虽然这么写的话较难配置(当前时间前缀+睡眠时间匹配文案+当前时间后缀),总之提供一个思路,具体实现加油(
四、配置时区
用户可以设定自己的时区,来调整睡眠统计响应时间的偏移值。
以上都是个人想法举例,随意更改,加油!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.