nonebot-plugin-morning


Namenonebot-plugin-morning JSON
Version 0.3.2 PyPI version JSON
download
home_page
SummaryGood morning & good night!
upload_time2022-12-28 03:36:03
maintainer
docs_urlNone
authorKafCoppelia
requires_python>=3.8,<4.0
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">

# Good Morning

<!-- prettier-ignore-start -->
<!-- markdownlint-disable-next-line MD036 -->
_🌈 おはよう! 🌈_
<!-- prettier-ignore-end -->

</div>
<p align="center">
  
  <a href="https://github.com/MinatoAquaCrews/nonebot_plugin_morning/blob/beta/LICENSE">
    <img src="https://img.shields.io/github/license/MinatoAquaCrews/nonebot_plugin_morning?color=blue">
  </a>
  
  <a href="https://github.com/nonebot/nonebot2">
    <img src="https://img.shields.io/badge/nonebot2-2.0.0rc1+-green">
  </a>
  
  <a href="https://github.com/MinatoAquaCrews/nonebot_plugin_morning/releases/tag/v0.3.2">
    <img src="https://img.shields.io/github/v/release/MinatoAquaCrews/nonebot_plugin_morning?color=orange">
  </a>

  <a href="https://www.codefactor.io/repository/github/MinatoAquaCrews/nonebot_plugin_morning">
    <img src="https://img.shields.io/codefactor/grade/github/MinatoAquaCrews/nonebot_plugin_morning/beta?color=red">
  </a>

  <a href="https://github.com/MinatoAquaCrews/nonebot_plugin_morning">
    <img src="https://img.shields.io/pypi/dm/nonebot_plugin_morning">
  </a>
  
</p>

## 版本

v0.3.2

⚠ 适配nonebot2-2.0.0rc1+

[更新日志](https://github.com/MinatoAquaCrews/nonebot_plugin_morning/releases/tag/v0.3.2)

## 安装

1. 通过`pip`或`nb`安装;

2. 用户数据`data.json`及早晚安配置文件`config.json`位于`./resource`下,可在`env`内设置`MORNING_PATH`更改:

    ``` python
    MORNING_PATH="path-to-your-resource"    # For example: ./my_data/morning_resource/
    ```

## 功能

1. 和Bot说早晚安,记录睡眠时间,培养良好作息;

2. 群管及超管可设置早安时限、晚安时限、优质睡眠、深度睡眠等,参见规则配置;

3. 🔥 分群管理群友作息,群友的早晚安数据会记录至`morning.json`内,形如:

    ``` python
    {
        "123456789": {                                      # 群号
            "group_count": {                                # 群统计
                "daily": {
                    "good_morning": 1,                      # 群每日早安人数
                    "good_night": 1                         # 群每日晚安人数
                },
                "weekly": {
                    "sleeping_king": "123456"               # 群上周睡觉大王
                }
            },
            # 群友个人作息统计
            "123456": {                                     # 群友QQ号
                "daily": {
                    "morning_time": "2022-01-01 07:08:09",  # 每日早安时间
                    "night_time": "2022-01-01 22:33:44"     # 每日晚安时间
                },
                "weekly": {
                    "weekly_morning_count": 1,              # 周早安天数
                    "weekly_night_count": 1,                # 周晚安天数
                    "weekly_sleep": [0, 7, 8, 9],           # 周睡眠时长,列表形式:天/时/分/秒,例如0天7时8分9秒
                    "lastweek_morning_count": 1,            # 上周早安天数(暂存)
                    "lastweek_night_count": 1,              # 上周晚安天数(暂存)
                    "lastweek_sleep": [0, 7, 8, 9],         # 上周睡眠时长(暂存)
                    "lastweek_earliest_morning_time": 0,    # 上周早安最早的时间(暂存)
                    "lastweek_latest_night_time": 0         # 上周晚安最晚的时间(暂存)
                },
                "total": {
                    "morning_count": 1,                     # 总早安次数
                    "night_count": 1,                       # 总晚安次数
                    "total_sleep": [0, 7, 8, 9]             # 总睡眠时间
                }
            }       
        }
    }
    ```

    👉 说明:
    
    1. 个人信息字段的`daily`储存每日作息数据;`weekly`储存每周作息数据,`lastweek_`前缀的数据为上周的“每周作息数据”,即暂存上周作息数据;`total`为总作息数据;

    2. 在**每周一的最晚早安时间**定时更新,在周一且当天**最晚早安时间**后,`群友作息`与`我的作息`将增加有关上周作息数据的信息(包括`lastweek_`前缀的数据与群信息字段中的`weekly`数据,目前仅有上周睡觉大王);

4. **新增** 将自动更新`v0.2.x`的数据文件`data.json`为新版`morning.json`;将自动更新`v0.2.x`的配置文件`config.json`部分键值。在插件初始化时,若不存在新版数据文件且存在旧版数据文件`data.json`,则更新数据字段、保留原始数据,否则创建空的新版数据文件。
   
   ⚠ 若存在新版数据文件`morning.json`,则不会重复更新

   ⚠ 自动检测配置文件`config.json`的部分键值是否为旧版并自动更新,后续版本将弃用该部分兼容

5. おはよう!🌈

## 命令

1. 早晚安:[早安/晚安],记录睡眠时间;

2. 查看我的作息:[我的作息]:每周一新增显示上周睡眠信息统计,其他时间显示本周信息;

3. 查看群友作息:[群友作息],看看今天几个群友睡觉或起床了,每周一新增显示上周睡觉王;

4. 查看当前安早晚安配置(规则):[早晚安设置];

5. [管理员或超管] 设置命令

    - 开启/关闭某个配置:早安/晚安开启/关闭某项功能;

    - 早安/晚安设置:设置功能的参数;

    - 详见规则配置;

## 全局规则配置

`confg.json` 全局规则配置文件已默认写入下述配置,会自动检测旧版配置文件并自动更新,当不存在时则创建并写入下述**初始值**:

``` python
{
    "morning": {
        "morning_intime": {         # 是否只能在规定时间起床
            "enable": true,         # 默认开启,若关闭则下面两项无效
            "early_time": 6,        # 允许的最早的起床时间,默认早上6点
            "late_time": 12         # 允许的最晚的起床时间,默认中午12点
        },
        "multi_get_up": {           # 是否允许多次起床
            "enable": false,        # 默认不允许,若允许则下面一项无效
            "interval": 6           # 两次起床间隔的时间,小于这个时间就不允许起床
        },
        "super_get_up": {           # 是否允许超级亢奋,即睡眠时长很短
            "enable": false,        # 默认不允许,若允许则下面一项无效
            "interval": 3           # 这次起床和上一次睡觉的时间间隔,小于这个时间就不允许起床,不怕猝死?给我睡!
        }
    },
    "night": {
        "night_intime": {           # 是否只能在规定时间睡觉
            "enable": true,         # 默认开启,若关闭则下面两项无效
            "early_time": 21,       # 允许的最早的睡觉时间,默认晚上21点
            "late_time": 6          # 允许的最晚的睡觉时间,默认次日早上6点
        },
        "good_sleep": {             # 是否开启优质睡眠
            "enable": true,         # 默认开启,若关闭则下面一项无效
            "interval": 6           # 两次睡觉间隔的时间,小于这个时间就不允许睡觉
        },
        "deep_sleep": {             # 是否允许深度睡眠,即清醒时长很短
            "enable": false,        # 默认不允许,若允许则下面一项无效
            "interval": 3           # 这次睡觉和上一次起床的时间间隔,小于这个时间就不允许睡觉,睡个锤子,快起床!
        }
    }
}
``` 

1. 默认配置(如上)

    - 早安:

		是否要求规定时间内起床:是

		是否允许连续多次起床:否

		是否允许超级亢奋(即睡眠时长很短):否

    - 晚安:

		是否要求规定时间内睡觉:是

		是否开启优质睡眠:是
      
		是否允许深度睡眠(即清醒时长很短):否

2. 早安配置
    
    - [早安开启 xx] 开启某个配置选项,配置项有:时限/多重起床/超级亢奋;例如,[早安开启 多重起床];
    
    - [早安关闭 xx] 关闭某个配置选项,配置项有:时限/多重起床/超级亢奋;例如,[早安关闭 时限];
    
    - [早安设置 xx x] 设置某个配置的参数,配置项有:时限/多重起床/超级亢奋;(x可选值为0到24的整数)
      
		⚠ 配置参数时,可一次性输入规定的参数,也可通过引导一步步设置
	  
		⚠ 当**设置时限**时需要两个参数,命令为:[早安设置 时限 x y],其余只需一个参数,例如,[早安设置 超级亢奋 5]

		⚠ 配置项具体含义参见上述规则配置
		
		⚠ 当配置某个选项时,会自动启用该选项

3. 晚安配置
    
    - [晚安开启 xx] 开启某个配置选项,配置项有:时限/优质睡眠/深度睡眠;例如,[晚安开启 优质睡眠];
    
    - [晚安关闭 xx] 关闭某个配置选项,配置项有:时限/优质睡眠/深度睡眠;例如,[晚安关闭 深度睡眠];
    
    - [晚安设置 xx x] 设置某个配置的参数,配置项有:时限/优质睡眠/深度睡眠;(x可选值为0到24的整数)
      
		⚠ 注意事项参考早安配置

## 本插件改自

[hoshinobot-good_morning](https://github.com/azmiao/good_morning)
            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "nonebot-plugin-morning",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "KafCoppelia",
    "author_email": "k740677208@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/7b/01/43926c35dac813acd43446c646c33f72a829fb07fef356aab06a2c3a5107/nonebot-plugin-morning-0.3.2.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\n\n# Good Morning\n\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable-next-line MD036 -->\n_\ud83c\udf08 \u304a\u306f\u3088\u3046\uff01 \ud83c\udf08_\n<!-- prettier-ignore-end -->\n\n</div>\n<p align=\"center\">\n  \n  <a href=\"https://github.com/MinatoAquaCrews/nonebot_plugin_morning/blob/beta/LICENSE\">\n    <img src=\"https://img.shields.io/github/license/MinatoAquaCrews/nonebot_plugin_morning?color=blue\">\n  </a>\n  \n  <a href=\"https://github.com/nonebot/nonebot2\">\n    <img src=\"https://img.shields.io/badge/nonebot2-2.0.0rc1+-green\">\n  </a>\n  \n  <a href=\"https://github.com/MinatoAquaCrews/nonebot_plugin_morning/releases/tag/v0.3.2\">\n    <img src=\"https://img.shields.io/github/v/release/MinatoAquaCrews/nonebot_plugin_morning?color=orange\">\n  </a>\n\n  <a href=\"https://www.codefactor.io/repository/github/MinatoAquaCrews/nonebot_plugin_morning\">\n    <img src=\"https://img.shields.io/codefactor/grade/github/MinatoAquaCrews/nonebot_plugin_morning/beta?color=red\">\n  </a>\n\n  <a href=\"https://github.com/MinatoAquaCrews/nonebot_plugin_morning\">\n    <img src=\"https://img.shields.io/pypi/dm/nonebot_plugin_morning\">\n  </a>\n  \n</p>\n\n## \u7248\u672c\n\nv0.3.2\n\n\u26a0 \u9002\u914dnonebot2-2.0.0rc1+\n\n[\u66f4\u65b0\u65e5\u5fd7](https://github.com/MinatoAquaCrews/nonebot_plugin_morning/releases/tag/v0.3.2)\n\n## \u5b89\u88c5\n\n1. \u901a\u8fc7`pip`\u6216`nb`\u5b89\u88c5\uff1b\n\n2. \u7528\u6237\u6570\u636e`data.json`\u53ca\u65e9\u665a\u5b89\u914d\u7f6e\u6587\u4ef6`config.json`\u4f4d\u4e8e`./resource`\u4e0b\uff0c\u53ef\u5728`env`\u5185\u8bbe\u7f6e`MORNING_PATH`\u66f4\u6539\uff1a\n\n    ``` python\n    MORNING_PATH=\"path-to-your-resource\"    # For example: ./my_data/morning_resource/\n    ```\n\n## \u529f\u80fd\n\n1. \u548cBot\u8bf4\u65e9\u665a\u5b89\uff0c\u8bb0\u5f55\u7761\u7720\u65f6\u95f4\uff0c\u57f9\u517b\u826f\u597d\u4f5c\u606f\uff1b\n\n2. \u7fa4\u7ba1\u53ca\u8d85\u7ba1\u53ef\u8bbe\u7f6e\u65e9\u5b89\u65f6\u9650\u3001\u665a\u5b89\u65f6\u9650\u3001\u4f18\u8d28\u7761\u7720\u3001\u6df1\u5ea6\u7761\u7720\u7b49\uff0c\u53c2\u89c1\u89c4\u5219\u914d\u7f6e\uff1b\n\n3. \ud83d\udd25 \u5206\u7fa4\u7ba1\u7406\u7fa4\u53cb\u4f5c\u606f\uff0c\u7fa4\u53cb\u7684\u65e9\u665a\u5b89\u6570\u636e\u4f1a\u8bb0\u5f55\u81f3`morning.json`\u5185\uff0c\u5f62\u5982\uff1a\n\n    ``` python\n    {\n        \"123456789\": {                                      # \u7fa4\u53f7\n            \"group_count\": {                                # \u7fa4\u7edf\u8ba1\n                \"daily\": {\n                    \"good_morning\": 1,                      # \u7fa4\u6bcf\u65e5\u65e9\u5b89\u4eba\u6570\n                    \"good_night\": 1                         # \u7fa4\u6bcf\u65e5\u665a\u5b89\u4eba\u6570\n                },\n                \"weekly\": {\n                    \"sleeping_king\": \"123456\"               # \u7fa4\u4e0a\u5468\u7761\u89c9\u5927\u738b\n                }\n            },\n            # \u7fa4\u53cb\u4e2a\u4eba\u4f5c\u606f\u7edf\u8ba1\n            \"123456\": {                                     # \u7fa4\u53cbQQ\u53f7\n                \"daily\": {\n                    \"morning_time\": \"2022-01-01 07:08:09\",  # \u6bcf\u65e5\u65e9\u5b89\u65f6\u95f4\n                    \"night_time\": \"2022-01-01 22:33:44\"     # \u6bcf\u65e5\u665a\u5b89\u65f6\u95f4\n                },\n                \"weekly\": {\n                    \"weekly_morning_count\": 1,              # \u5468\u65e9\u5b89\u5929\u6570\n                    \"weekly_night_count\": 1,                # \u5468\u665a\u5b89\u5929\u6570\n                    \"weekly_sleep\": [0, 7, 8, 9],           # \u5468\u7761\u7720\u65f6\u957f\uff0c\u5217\u8868\u5f62\u5f0f\uff1a\u5929/\u65f6/\u5206/\u79d2\uff0c\u4f8b\u59820\u59297\u65f68\u52069\u79d2\n                    \"lastweek_morning_count\": 1,            # \u4e0a\u5468\u65e9\u5b89\u5929\u6570\uff08\u6682\u5b58\uff09\n                    \"lastweek_night_count\": 1,              # \u4e0a\u5468\u665a\u5b89\u5929\u6570\uff08\u6682\u5b58\uff09\n                    \"lastweek_sleep\": [0, 7, 8, 9],         # \u4e0a\u5468\u7761\u7720\u65f6\u957f\uff08\u6682\u5b58\uff09\n                    \"lastweek_earliest_morning_time\": 0,    # \u4e0a\u5468\u65e9\u5b89\u6700\u65e9\u7684\u65f6\u95f4\uff08\u6682\u5b58\uff09\n                    \"lastweek_latest_night_time\": 0         # \u4e0a\u5468\u665a\u5b89\u6700\u665a\u7684\u65f6\u95f4\uff08\u6682\u5b58\uff09\n                },\n                \"total\": {\n                    \"morning_count\": 1,                     # \u603b\u65e9\u5b89\u6b21\u6570\n                    \"night_count\": 1,                       # \u603b\u665a\u5b89\u6b21\u6570\n                    \"total_sleep\": [0, 7, 8, 9]             # \u603b\u7761\u7720\u65f6\u95f4\n                }\n            }       \n        }\n    }\n    ```\n\n    \ud83d\udc49 \u8bf4\u660e\uff1a\n    \n    1. \u4e2a\u4eba\u4fe1\u606f\u5b57\u6bb5\u7684`daily`\u50a8\u5b58\u6bcf\u65e5\u4f5c\u606f\u6570\u636e\uff1b`weekly`\u50a8\u5b58\u6bcf\u5468\u4f5c\u606f\u6570\u636e\uff0c`lastweek_`\u524d\u7f00\u7684\u6570\u636e\u4e3a\u4e0a\u5468\u7684\u201c\u6bcf\u5468\u4f5c\u606f\u6570\u636e\u201d\uff0c\u5373\u6682\u5b58\u4e0a\u5468\u4f5c\u606f\u6570\u636e\uff1b`total`\u4e3a\u603b\u4f5c\u606f\u6570\u636e\uff1b\n\n    2. \u5728**\u6bcf\u5468\u4e00\u7684\u6700\u665a\u65e9\u5b89\u65f6\u95f4**\u5b9a\u65f6\u66f4\u65b0\uff0c\u5728\u5468\u4e00\u4e14\u5f53\u5929**\u6700\u665a\u65e9\u5b89\u65f6\u95f4**\u540e\uff0c`\u7fa4\u53cb\u4f5c\u606f`\u4e0e`\u6211\u7684\u4f5c\u606f`\u5c06\u589e\u52a0\u6709\u5173\u4e0a\u5468\u4f5c\u606f\u6570\u636e\u7684\u4fe1\u606f\uff08\u5305\u62ec`lastweek_`\u524d\u7f00\u7684\u6570\u636e\u4e0e\u7fa4\u4fe1\u606f\u5b57\u6bb5\u4e2d\u7684`weekly`\u6570\u636e\uff0c\u76ee\u524d\u4ec5\u6709\u4e0a\u5468\u7761\u89c9\u5927\u738b\uff09\uff1b\n\n4. **\u65b0\u589e** \u5c06\u81ea\u52a8\u66f4\u65b0`v0.2.x`\u7684\u6570\u636e\u6587\u4ef6`data.json`\u4e3a\u65b0\u7248`morning.json`\uff1b\u5c06\u81ea\u52a8\u66f4\u65b0`v0.2.x`\u7684\u914d\u7f6e\u6587\u4ef6`config.json`\u90e8\u5206\u952e\u503c\u3002\u5728\u63d2\u4ef6\u521d\u59cb\u5316\u65f6\uff0c\u82e5\u4e0d\u5b58\u5728\u65b0\u7248\u6570\u636e\u6587\u4ef6\u4e14\u5b58\u5728\u65e7\u7248\u6570\u636e\u6587\u4ef6`data.json`\uff0c\u5219\u66f4\u65b0\u6570\u636e\u5b57\u6bb5\u3001\u4fdd\u7559\u539f\u59cb\u6570\u636e\uff0c\u5426\u5219\u521b\u5efa\u7a7a\u7684\u65b0\u7248\u6570\u636e\u6587\u4ef6\u3002\n   \n   \u26a0 \u82e5\u5b58\u5728\u65b0\u7248\u6570\u636e\u6587\u4ef6`morning.json`\uff0c\u5219\u4e0d\u4f1a\u91cd\u590d\u66f4\u65b0\n\n   \u26a0 \u81ea\u52a8\u68c0\u6d4b\u914d\u7f6e\u6587\u4ef6`config.json`\u7684\u90e8\u5206\u952e\u503c\u662f\u5426\u4e3a\u65e7\u7248\u5e76\u81ea\u52a8\u66f4\u65b0\uff0c\u540e\u7eed\u7248\u672c\u5c06\u5f03\u7528\u8be5\u90e8\u5206\u517c\u5bb9\n\n5. \u304a\u306f\u3088\u3046\uff01\ud83c\udf08\n\n## \u547d\u4ee4\n\n1. \u65e9\u665a\u5b89\uff1a[\u65e9\u5b89/\u665a\u5b89]\uff0c\u8bb0\u5f55\u7761\u7720\u65f6\u95f4\uff1b\n\n2. \u67e5\u770b\u6211\u7684\u4f5c\u606f\uff1a[\u6211\u7684\u4f5c\u606f]\uff1a\u6bcf\u5468\u4e00\u65b0\u589e\u663e\u793a\u4e0a\u5468\u7761\u7720\u4fe1\u606f\u7edf\u8ba1\uff0c\u5176\u4ed6\u65f6\u95f4\u663e\u793a\u672c\u5468\u4fe1\u606f\uff1b\n\n3. \u67e5\u770b\u7fa4\u53cb\u4f5c\u606f\uff1a[\u7fa4\u53cb\u4f5c\u606f]\uff0c\u770b\u770b\u4eca\u5929\u51e0\u4e2a\u7fa4\u53cb\u7761\u89c9\u6216\u8d77\u5e8a\u4e86\uff0c\u6bcf\u5468\u4e00\u65b0\u589e\u663e\u793a\u4e0a\u5468\u7761\u89c9\u738b\uff1b\n\n4. \u67e5\u770b\u5f53\u524d\u5b89\u65e9\u665a\u5b89\u914d\u7f6e\uff08\u89c4\u5219\uff09\uff1a[\u65e9\u665a\u5b89\u8bbe\u7f6e]\uff1b\n\n5. [\u7ba1\u7406\u5458\u6216\u8d85\u7ba1] \u8bbe\u7f6e\u547d\u4ee4\n\n    - \u5f00\u542f/\u5173\u95ed\u67d0\u4e2a\u914d\u7f6e\uff1a\u65e9\u5b89/\u665a\u5b89\u5f00\u542f/\u5173\u95ed\u67d0\u9879\u529f\u80fd\uff1b\n\n    - \u65e9\u5b89/\u665a\u5b89\u8bbe\u7f6e\uff1a\u8bbe\u7f6e\u529f\u80fd\u7684\u53c2\u6570\uff1b\n\n    - \u8be6\u89c1\u89c4\u5219\u914d\u7f6e\uff1b\n\n## \u5168\u5c40\u89c4\u5219\u914d\u7f6e\n\n`confg.json` \u5168\u5c40\u89c4\u5219\u914d\u7f6e\u6587\u4ef6\u5df2\u9ed8\u8ba4\u5199\u5165\u4e0b\u8ff0\u914d\u7f6e\uff0c\u4f1a\u81ea\u52a8\u68c0\u6d4b\u65e7\u7248\u914d\u7f6e\u6587\u4ef6\u5e76\u81ea\u52a8\u66f4\u65b0\uff0c\u5f53\u4e0d\u5b58\u5728\u65f6\u5219\u521b\u5efa\u5e76\u5199\u5165\u4e0b\u8ff0**\u521d\u59cb\u503c**\uff1a\n\n``` python\n{\n    \"morning\": {\n        \"morning_intime\": {         # \u662f\u5426\u53ea\u80fd\u5728\u89c4\u5b9a\u65f6\u95f4\u8d77\u5e8a\n            \"enable\": true,         # \u9ed8\u8ba4\u5f00\u542f\uff0c\u82e5\u5173\u95ed\u5219\u4e0b\u9762\u4e24\u9879\u65e0\u6548\n            \"early_time\": 6,        # \u5141\u8bb8\u7684\u6700\u65e9\u7684\u8d77\u5e8a\u65f6\u95f4\uff0c\u9ed8\u8ba4\u65e9\u4e0a6\u70b9\n            \"late_time\": 12         # \u5141\u8bb8\u7684\u6700\u665a\u7684\u8d77\u5e8a\u65f6\u95f4\uff0c\u9ed8\u8ba4\u4e2d\u534812\u70b9\n        },\n        \"multi_get_up\": {           # \u662f\u5426\u5141\u8bb8\u591a\u6b21\u8d77\u5e8a\n            \"enable\": false,        # \u9ed8\u8ba4\u4e0d\u5141\u8bb8\uff0c\u82e5\u5141\u8bb8\u5219\u4e0b\u9762\u4e00\u9879\u65e0\u6548\n            \"interval\": 6           # \u4e24\u6b21\u8d77\u5e8a\u95f4\u9694\u7684\u65f6\u95f4\uff0c\u5c0f\u4e8e\u8fd9\u4e2a\u65f6\u95f4\u5c31\u4e0d\u5141\u8bb8\u8d77\u5e8a\n        },\n        \"super_get_up\": {           # \u662f\u5426\u5141\u8bb8\u8d85\u7ea7\u4ea2\u594b\uff0c\u5373\u7761\u7720\u65f6\u957f\u5f88\u77ed\n            \"enable\": false,        # \u9ed8\u8ba4\u4e0d\u5141\u8bb8\uff0c\u82e5\u5141\u8bb8\u5219\u4e0b\u9762\u4e00\u9879\u65e0\u6548\n            \"interval\": 3           # \u8fd9\u6b21\u8d77\u5e8a\u548c\u4e0a\u4e00\u6b21\u7761\u89c9\u7684\u65f6\u95f4\u95f4\u9694\uff0c\u5c0f\u4e8e\u8fd9\u4e2a\u65f6\u95f4\u5c31\u4e0d\u5141\u8bb8\u8d77\u5e8a\uff0c\u4e0d\u6015\u731d\u6b7b\uff1f\u7ed9\u6211\u7761\uff01\n        }\n    },\n    \"night\": {\n        \"night_intime\": {           # \u662f\u5426\u53ea\u80fd\u5728\u89c4\u5b9a\u65f6\u95f4\u7761\u89c9\n            \"enable\": true,         # \u9ed8\u8ba4\u5f00\u542f\uff0c\u82e5\u5173\u95ed\u5219\u4e0b\u9762\u4e24\u9879\u65e0\u6548\n            \"early_time\": 21,       # \u5141\u8bb8\u7684\u6700\u65e9\u7684\u7761\u89c9\u65f6\u95f4\uff0c\u9ed8\u8ba4\u665a\u4e0a21\u70b9\n            \"late_time\": 6          # \u5141\u8bb8\u7684\u6700\u665a\u7684\u7761\u89c9\u65f6\u95f4\uff0c\u9ed8\u8ba4\u6b21\u65e5\u65e9\u4e0a6\u70b9\n        },\n        \"good_sleep\": {             # \u662f\u5426\u5f00\u542f\u4f18\u8d28\u7761\u7720\n            \"enable\": true,         # \u9ed8\u8ba4\u5f00\u542f\uff0c\u82e5\u5173\u95ed\u5219\u4e0b\u9762\u4e00\u9879\u65e0\u6548\n            \"interval\": 6           # \u4e24\u6b21\u7761\u89c9\u95f4\u9694\u7684\u65f6\u95f4\uff0c\u5c0f\u4e8e\u8fd9\u4e2a\u65f6\u95f4\u5c31\u4e0d\u5141\u8bb8\u7761\u89c9\n        },\n        \"deep_sleep\": {             # \u662f\u5426\u5141\u8bb8\u6df1\u5ea6\u7761\u7720\uff0c\u5373\u6e05\u9192\u65f6\u957f\u5f88\u77ed\n            \"enable\": false,        # \u9ed8\u8ba4\u4e0d\u5141\u8bb8\uff0c\u82e5\u5141\u8bb8\u5219\u4e0b\u9762\u4e00\u9879\u65e0\u6548\n            \"interval\": 3           # \u8fd9\u6b21\u7761\u89c9\u548c\u4e0a\u4e00\u6b21\u8d77\u5e8a\u7684\u65f6\u95f4\u95f4\u9694\uff0c\u5c0f\u4e8e\u8fd9\u4e2a\u65f6\u95f4\u5c31\u4e0d\u5141\u8bb8\u7761\u89c9\uff0c\u7761\u4e2a\u9524\u5b50\uff0c\u5feb\u8d77\u5e8a\uff01\n        }\n    }\n}\n``` \n\n1. \u9ed8\u8ba4\u914d\u7f6e\uff08\u5982\u4e0a\uff09\n\n    - \u65e9\u5b89\uff1a\n\n\t\t\u662f\u5426\u8981\u6c42\u89c4\u5b9a\u65f6\u95f4\u5185\u8d77\u5e8a\uff1a\u662f\n\n\t\t\u662f\u5426\u5141\u8bb8\u8fde\u7eed\u591a\u6b21\u8d77\u5e8a\uff1a\u5426\n\n\t\t\u662f\u5426\u5141\u8bb8\u8d85\u7ea7\u4ea2\u594b(\u5373\u7761\u7720\u65f6\u957f\u5f88\u77ed)\uff1a\u5426\n\n    - \u665a\u5b89\uff1a\n\n\t\t\u662f\u5426\u8981\u6c42\u89c4\u5b9a\u65f6\u95f4\u5185\u7761\u89c9\uff1a\u662f\n\n\t\t\u662f\u5426\u5f00\u542f\u4f18\u8d28\u7761\u7720\uff1a\u662f\n      \n\t\t\u662f\u5426\u5141\u8bb8\u6df1\u5ea6\u7761\u7720(\u5373\u6e05\u9192\u65f6\u957f\u5f88\u77ed)\uff1a\u5426\n\n2. \u65e9\u5b89\u914d\u7f6e\n    \n    - [\u65e9\u5b89\u5f00\u542f xx] \u5f00\u542f\u67d0\u4e2a\u914d\u7f6e\u9009\u9879\uff0c\u914d\u7f6e\u9879\u6709\uff1a\u65f6\u9650/\u591a\u91cd\u8d77\u5e8a/\u8d85\u7ea7\u4ea2\u594b\uff1b\u4f8b\u5982\uff0c[\u65e9\u5b89\u5f00\u542f \u591a\u91cd\u8d77\u5e8a]\uff1b\n    \n    - [\u65e9\u5b89\u5173\u95ed xx] \u5173\u95ed\u67d0\u4e2a\u914d\u7f6e\u9009\u9879\uff0c\u914d\u7f6e\u9879\u6709\uff1a\u65f6\u9650/\u591a\u91cd\u8d77\u5e8a/\u8d85\u7ea7\u4ea2\u594b\uff1b\u4f8b\u5982\uff0c[\u65e9\u5b89\u5173\u95ed \u65f6\u9650]\uff1b\n    \n    - [\u65e9\u5b89\u8bbe\u7f6e xx x] \u8bbe\u7f6e\u67d0\u4e2a\u914d\u7f6e\u7684\u53c2\u6570\uff0c\u914d\u7f6e\u9879\u6709\uff1a\u65f6\u9650/\u591a\u91cd\u8d77\u5e8a/\u8d85\u7ea7\u4ea2\u594b\uff1b\uff08x\u53ef\u9009\u503c\u4e3a0\u523024\u7684\u6574\u6570\uff09\n      \n\t\t\u26a0 \u914d\u7f6e\u53c2\u6570\u65f6\uff0c\u53ef\u4e00\u6b21\u6027\u8f93\u5165\u89c4\u5b9a\u7684\u53c2\u6570\uff0c\u4e5f\u53ef\u901a\u8fc7\u5f15\u5bfc\u4e00\u6b65\u6b65\u8bbe\u7f6e\n\t  \n\t\t\u26a0 \u5f53**\u8bbe\u7f6e\u65f6\u9650**\u65f6\u9700\u8981\u4e24\u4e2a\u53c2\u6570\uff0c\u547d\u4ee4\u4e3a\uff1a[\u65e9\u5b89\u8bbe\u7f6e \u65f6\u9650 x y]\uff0c\u5176\u4f59\u53ea\u9700\u4e00\u4e2a\u53c2\u6570\uff0c\u4f8b\u5982\uff0c[\u65e9\u5b89\u8bbe\u7f6e \u8d85\u7ea7\u4ea2\u594b 5]\n\n\t\t\u26a0 \u914d\u7f6e\u9879\u5177\u4f53\u542b\u4e49\u53c2\u89c1\u4e0a\u8ff0\u89c4\u5219\u914d\u7f6e\n\t\t\n\t\t\u26a0 \u5f53\u914d\u7f6e\u67d0\u4e2a\u9009\u9879\u65f6\uff0c\u4f1a\u81ea\u52a8\u542f\u7528\u8be5\u9009\u9879\n\n3. \u665a\u5b89\u914d\u7f6e\n    \n    - [\u665a\u5b89\u5f00\u542f xx] \u5f00\u542f\u67d0\u4e2a\u914d\u7f6e\u9009\u9879\uff0c\u914d\u7f6e\u9879\u6709\uff1a\u65f6\u9650/\u4f18\u8d28\u7761\u7720/\u6df1\u5ea6\u7761\u7720\uff1b\u4f8b\u5982\uff0c[\u665a\u5b89\u5f00\u542f \u4f18\u8d28\u7761\u7720]\uff1b\n    \n    - [\u665a\u5b89\u5173\u95ed xx] \u5173\u95ed\u67d0\u4e2a\u914d\u7f6e\u9009\u9879\uff0c\u914d\u7f6e\u9879\u6709\uff1a\u65f6\u9650/\u4f18\u8d28\u7761\u7720/\u6df1\u5ea6\u7761\u7720\uff1b\u4f8b\u5982\uff0c[\u665a\u5b89\u5173\u95ed \u6df1\u5ea6\u7761\u7720]\uff1b\n    \n    - [\u665a\u5b89\u8bbe\u7f6e xx x] \u8bbe\u7f6e\u67d0\u4e2a\u914d\u7f6e\u7684\u53c2\u6570\uff0c\u914d\u7f6e\u9879\u6709\uff1a\u65f6\u9650/\u4f18\u8d28\u7761\u7720/\u6df1\u5ea6\u7761\u7720\uff1b\uff08x\u53ef\u9009\u503c\u4e3a0\u523024\u7684\u6574\u6570\uff09\n      \n\t\t\u26a0 \u6ce8\u610f\u4e8b\u9879\u53c2\u8003\u65e9\u5b89\u914d\u7f6e\n\n## \u672c\u63d2\u4ef6\u6539\u81ea\n\n[hoshinobot-good_morning](https://github.com/azmiao/good_morning)",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Good morning & good night!",
    "version": "0.3.2",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "429875c40fe9e64a07016205df849adb",
                "sha256": "3d3b2b5758255df576ea3621af8fac52e2f1bf397af96efbdd838b2e2d8aa78a"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_morning-0.3.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "429875c40fe9e64a07016205df849adb",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 18284,
            "upload_time": "2022-12-28T03:36:05",
            "upload_time_iso_8601": "2022-12-28T03:36:05.610930Z",
            "url": "https://files.pythonhosted.org/packages/62/8f/411dd843bc03ebe640fd5ca6f218089338bd49d6e276e9e16ed5ede0e89f/nonebot_plugin_morning-0.3.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "9ad727e3caf63e951dbb886f5feb98ec",
                "sha256": "aea6a25dd9531992113b3bd0db25d67ba0c684a0ba1abc32cfd86de25bc2d1b4"
            },
            "downloads": -1,
            "filename": "nonebot-plugin-morning-0.3.2.tar.gz",
            "has_sig": false,
            "md5_digest": "9ad727e3caf63e951dbb886f5feb98ec",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 19698,
            "upload_time": "2022-12-28T03:36:03",
            "upload_time_iso_8601": "2022-12-28T03:36:03.357885Z",
            "url": "https://files.pythonhosted.org/packages/7b/01/43926c35dac813acd43446c646c33f72a829fb07fef356aab06a2c3a5107/nonebot-plugin-morning-0.3.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-28 03:36:03",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "nonebot-plugin-morning"
}
        
Elapsed time: 0.03053s