nonebot-plugin-sanyao 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 afterow
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,109 @@
1
+ Metadata-Version: 2.1
2
+ Name: nonebot-plugin-sanyao
3
+ Version: 0.1.1
4
+ Summary: 三爻易数排盘
5
+ Home-page: https://github.com/afterow/nonebot-plugin-sanyao
6
+ Author: afterow
7
+ Author-email: afterow <afterow@163.com>
8
+ License: AGPL-3
9
+ Project-URL: Homepage, https://github.com/afterow/nonebot-plugin-sanyao
10
+ Project-URL: Bug Tracker, https://github.com/afterow/nonebot-plugin-sanyao/issues
11
+ Classifier: Framework :: Pydantic
12
+ Classifier: License :: OSI Approved :: GNU Affero General Public License v3
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3 :: Only
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Natural Language :: Chinese (Simplified)
18
+ Requires-Python: <4.0,>=3.10
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: cnlunar
22
+
23
+ <div align="center">
24
+ <a href="https://v2.nonebot.dev/store"><img src="resources/nbp_logo.png" width="180" height="180" alt="NoneBotPluginLogo"></a>
25
+ <br>
26
+ <p><img src="resources/NoneBotPlugin.svg" width="240" alt="NoneBotPluginText"></p>
27
+ </div>
28
+
29
+ <div align="center">
30
+
31
+ # nonebot-plugin-sanyao
32
+
33
+ _✨ NoneBot 插件简单描述 ✨_
34
+
35
+
36
+ <a href="./LICENSE">
37
+ <img src="https://img.shields.io/github/license/owner/nonebot-plugin-template.svg" alt="license">
38
+ </a>
39
+ <a href="https://pypi.python.org/pypi/nonebot-plugin-sanyao">
40
+ <img src="https://img.shields.io/pypi/v/nonebot-plugin-sanyao.svg" alt="pypi">
41
+ </a>
42
+ <img src="https://img.shields.io/badge/python-3.8+-blue.svg" alt="python">
43
+
44
+ </div>
45
+
46
+ 这是一个 三爻易数插件
47
+
48
+ ## 📖 介绍
49
+
50
+ 这里是一个 三爻易数插件,后续增加64卦。
51
+
52
+ ## 💿 安装
53
+
54
+ <details open>
55
+ <summary>使用 nb-cli 安装</summary>
56
+ 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
57
+
58
+ nb plugin install nonebot-plugin-sanyao
59
+
60
+ </details>
61
+
62
+ <details>
63
+ <summary>使用包管理器安装</summary>
64
+ 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
65
+
66
+ <details>
67
+ <summary>pip</summary>
68
+
69
+ pip install nonebot-plugin-sanyao
70
+ </details>
71
+ <details>
72
+ <summary>pdm</summary>
73
+
74
+ pdm add nonebot-plugin-sanyao
75
+ </details>
76
+ <details>
77
+ <summary>poetry</summary>
78
+
79
+ poetry add nonebot-plugin-sanyao
80
+ </details>
81
+ <details>
82
+ <summary>conda</summary>
83
+
84
+ conda install nonebot-plugin-sanyao
85
+ </details>
86
+
87
+ 打开 nonebot2 项目根目录下的 `pyproject.toml` 文件, 在 `[tool.nonebot]` 部分追加写入
88
+
89
+ plugins = ["nonebot_plugin_template"]
90
+
91
+ </details>
92
+
93
+ ## ⚙️ 配置
94
+
95
+ 在 nonebot2 项目的`.env`文件中添加下表中的必填配置
96
+
97
+ | 配置项 | 必填 | 默认值 | 说明 |
98
+ |:---:|:--:|:---:|:----:|
99
+ | 无 | 是 | 无 | 配置说明 |
100
+ | 无 | 否 | 无 | 配置说明 |
101
+
102
+ ## 🎉 使用
103
+ ### 指令表
104
+ | 指令 | 权限 | 需要@ | 范围 | 说明 |
105
+ |:--:|:--:|:---:|:--:|:----:|
106
+ | 排盘 | 群员 | 否 | 私聊 | 开始排盘 |
107
+ | 三爻 | 群员 | 否 | 群聊 | 开始排盘 |
108
+ ### 效果图
109
+ 如果有效果图的话
@@ -0,0 +1,87 @@
1
+ <div align="center">
2
+ <a href="https://v2.nonebot.dev/store"><img src="resources/nbp_logo.png" width="180" height="180" alt="NoneBotPluginLogo"></a>
3
+ <br>
4
+ <p><img src="resources/NoneBotPlugin.svg" width="240" alt="NoneBotPluginText"></p>
5
+ </div>
6
+
7
+ <div align="center">
8
+
9
+ # nonebot-plugin-sanyao
10
+
11
+ _✨ NoneBot 插件简单描述 ✨_
12
+
13
+
14
+ <a href="./LICENSE">
15
+ <img src="https://img.shields.io/github/license/owner/nonebot-plugin-template.svg" alt="license">
16
+ </a>
17
+ <a href="https://pypi.python.org/pypi/nonebot-plugin-sanyao">
18
+ <img src="https://img.shields.io/pypi/v/nonebot-plugin-sanyao.svg" alt="pypi">
19
+ </a>
20
+ <img src="https://img.shields.io/badge/python-3.8+-blue.svg" alt="python">
21
+
22
+ </div>
23
+
24
+ 这是一个 三爻易数插件
25
+
26
+ ## 📖 介绍
27
+
28
+ 这里是一个 三爻易数插件,后续增加64卦。
29
+
30
+ ## 💿 安装
31
+
32
+ <details open>
33
+ <summary>使用 nb-cli 安装</summary>
34
+ 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
35
+
36
+ nb plugin install nonebot-plugin-sanyao
37
+
38
+ </details>
39
+
40
+ <details>
41
+ <summary>使用包管理器安装</summary>
42
+ 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
43
+
44
+ <details>
45
+ <summary>pip</summary>
46
+
47
+ pip install nonebot-plugin-sanyao
48
+ </details>
49
+ <details>
50
+ <summary>pdm</summary>
51
+
52
+ pdm add nonebot-plugin-sanyao
53
+ </details>
54
+ <details>
55
+ <summary>poetry</summary>
56
+
57
+ poetry add nonebot-plugin-sanyao
58
+ </details>
59
+ <details>
60
+ <summary>conda</summary>
61
+
62
+ conda install nonebot-plugin-sanyao
63
+ </details>
64
+
65
+ 打开 nonebot2 项目根目录下的 `pyproject.toml` 文件, 在 `[tool.nonebot]` 部分追加写入
66
+
67
+ plugins = ["nonebot_plugin_template"]
68
+
69
+ </details>
70
+
71
+ ## ⚙️ 配置
72
+
73
+ 在 nonebot2 项目的`.env`文件中添加下表中的必填配置
74
+
75
+ | 配置项 | 必填 | 默认值 | 说明 |
76
+ |:---:|:--:|:---:|:----:|
77
+ | 无 | 是 | 无 | 配置说明 |
78
+ | 无 | 否 | 无 | 配置说明 |
79
+
80
+ ## 🎉 使用
81
+ ### 指令表
82
+ | 指令 | 权限 | 需要@ | 范围 | 说明 |
83
+ |:--:|:--:|:---:|:--:|:----:|
84
+ | 排盘 | 群员 | 否 | 私聊 | 开始排盘 |
85
+ | 三爻 | 群员 | 否 | 群聊 | 开始排盘 |
86
+ ### 效果图
87
+ 如果有效果图的话
@@ -0,0 +1,42 @@
1
+ [project]
2
+ name = "nonebot-plugin-sanyao"
3
+ version = "0.1.1"
4
+ authors = [
5
+ {name="afterow", email="afterow@163.com"}
6
+ ]
7
+ description = "三爻易数排盘"
8
+ readme = "README.md"
9
+ license = { text = "AGPL-3" }
10
+ requires-python = ">=3.10, <4.0"
11
+ dependencies = [
12
+ "cnlunar",
13
+ ]
14
+ classifiers = [
15
+ "Framework :: Pydantic",
16
+ "License :: OSI Approved :: GNU Affero General Public License v3",
17
+ "Programming Language :: Python :: 3",
18
+ "Programming Language :: Python :: 3 :: Only",
19
+ "Programming Language :: Python :: 3.10",
20
+ "Programming Language :: Python :: 3.11",
21
+ "Natural Language :: Chinese (Simplified)"
22
+ ]
23
+
24
+ [tool.nonebot]
25
+ adapters = [
26
+ { name = "OneBot V11", module_name = "nonebot.adapters.onebot.v11" }
27
+ ]
28
+ plugins = ["nonebot_plugin_sanyao"]
29
+ plugin_dirs = ["src"]
30
+ builtin_plugins = []
31
+
32
+ [tool.setuptools.packages.find]
33
+ where = ["src"]
34
+ include = ["nonebot_plugin_sanyao"]
35
+
36
+ [build-system]
37
+ requires = ["setuptools >= 65.6.3"]
38
+ build-backend = "setuptools.build_meta"
39
+
40
+ [project.urls]
41
+ "Homepage" = "https://github.com/afterow/nonebot-plugin-sanyao"
42
+ "Bug Tracker" = "https://github.com/afterow/nonebot-plugin-sanyao/issues"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,13 @@
1
+ # setup.py文件内容
2
+ from setuptools import setup
3
+
4
+ setup(
5
+ name='nonebot-plugin-sanyar', # 应用名(pip安装和卸载时的名字)
6
+ version='0.1.0', # 当前版本
7
+ author='afterow', # 作者
8
+ author_email='afterow@163.com', # 作者邮箱
9
+ licence='MIT License', # 许可协议
10
+ url='https://github.com/afterow/nonebot-plugin-sanyao', # 应用主页链接
11
+
12
+ install_requires=['cnlunar','nonebot-adapter-onebot'], # 依赖包
13
+ )
@@ -0,0 +1,16 @@
1
+ from nonebot.rule import to_me
2
+ from nonebot.plugin import on_command
3
+ from nonebot.adapters import Message
4
+ from nonebot.params import CommandArg
5
+ from src.nonebot_plugin_sanyao.sanyao import print_lunar_info_and_bazi
6
+
7
+ weather = on_command("三爻", rule=to_me(), aliases={"排盘", "三爻易"}, priority=10, block=True)
8
+
9
+ @weather.handle()
10
+ async def handle_function(args: Message = CommandArg()):
11
+ # 提取参数纯文本作为地名,并判断是否有效
12
+ if location := args.extract_plain_text():
13
+ xx=print_lunar_info_and_bazi(location)
14
+ await weather.finish(xx)
15
+ else:
16
+ await weather.finish("请输入参数 如/三爻 101")
@@ -0,0 +1,5 @@
1
+ from pydantic import BaseModel
2
+
3
+
4
+ class Config(BaseModel):
5
+ """Plugin Config Here"""
@@ -0,0 +1,158 @@
1
+ import datetime
2
+ import cnlunar
3
+
4
+ bagua = {
5
+ "乾": [[1, 1, 1], 1],
6
+ "兑": [[0, 1, 1], 2],
7
+ "离": [[1, 0, 1], 3],
8
+ "震": [[0, 0, 1], 4],
9
+ "巽": [[1, 1, 0], 5],
10
+ "坎": [[0, 1, 0], 6],
11
+ "艮": [[1, 0, 0], 7],
12
+ "坤": [[0, 0, 0], 8]
13
+
14
+ }
15
+
16
+ big_gua = [
17
+ ["乾为天", "天泽履", "天火同人", "天雷无妄", "天风姤", "天水讼", "天山遁", "天地否"],
18
+ ["泽天夬", "兑为泽", "泽火革", "泽雷随", "泽风大过", "泽水困", "泽山咸", "泽地萃"],
19
+ ["火天大有", "火泽睽", "离为火", "火雷噬嗑", "火风鼎", "火水未济", "火山旅", "火地晋"],
20
+ ["雷天大壮", "雷泽归妹", "雷火丰", "震为雷", "雷风恒", "雷水解", "雷山小过", "雷地豫"],
21
+ ["风天小畜", "风泽中孚", "风火家人", "风雷益", "巽为风", "风水涣", "风山渐", "风地观"],
22
+ ["水天需", "水泽节", "水火既济", "水雷屯", "水风井", "坎为水", "水山蹇", "水地比"],
23
+ ["山天大蓄", "山泽损", "山火贲", "山雷姬", "山风蛊", "山水蒙", "艮为山", "山地剥"],
24
+ ["地天泰", "地泽临", "地火明夷", "地雷复", "地风升", "地水师", "地山谦", "坤为地"]
25
+ ]
26
+
27
+
28
+ def get_parity(numbers):
29
+ # 定义一个空列表用于存储结果
30
+ result = []
31
+ # 将输入的数字转换为整数并判断奇偶性
32
+ for num in numbers:
33
+ num = int(num)
34
+ if num % 2 == 0: # 如果是偶数
35
+ result.append(0)
36
+ else: # 如果是奇数
37
+ result.append(1)
38
+ return result # 不要忘记返回结果列表
39
+
40
+
41
+ # 卦象得到卦名
42
+ def find_key_by_value(bagua_dict, target_value):
43
+ for key, value in bagua_dict.items():
44
+ if value[0] == target_value:
45
+ return key, value # 如果找到,返回键
46
+ return '没有找到' # 如果循环结束还没有找到,返回没有找到
47
+
48
+
49
+ def toggle_element(target_value):
50
+ # 创建临时列表
51
+ tmp_list = list(target_value)
52
+
53
+ # 获取本卦
54
+ man_gua = find_key_by_value(bagua, tmp_list)
55
+
56
+ # 计算列表中所有元素的和
57
+ total_sum = sum(tmp_list)
58
+
59
+ # 计算变爻位置(Python索引从0开始,无需减1)
60
+ yaobian = total_sum % 3
61
+
62
+ # 切换变爻位置上的元素
63
+ tmp_list[yaobian] = 0 if tmp_list[yaobian] == 1 else 1
64
+
65
+ # 创建合并列表
66
+ flattened_list = target_value + tmp_list
67
+ # 获取变卦、互卦、错卦和综卦
68
+ Bian_gua = find_key_by_value(bagua, tmp_list)
69
+ hu_ben = find_key_by_value(bagua, flattened_list[1:4])
70
+ hu_bian = find_key_by_value(bagua, flattened_list[2:5])
71
+
72
+ # 创建补码列表
73
+ result_tmp_list = [1 if value == 0 else 0 for value in flattened_list]
74
+
75
+ # 获取错卦
76
+ cuo_ben = find_key_by_value(bagua, result_tmp_list[0:3])
77
+ cuo_bian = find_key_by_value(bagua, result_tmp_list[3:6])
78
+
79
+ # 创建反向列表并获取综卦
80
+ reverse_tmp_list = flattened_list[::-1]
81
+ zong_ben = find_key_by_value(bagua, reverse_tmp_list[0:3])
82
+ zong_bian = find_key_by_value(bagua, reverse_tmp_list[3:6])
83
+
84
+ # 打印卦的名称和相关信息
85
+ A1 = ("本卦:{}之{}".format(man_gua[0], Bian_gua[0]))
86
+ A2 = ("互卦:{}之{}".format(hu_ben[0], hu_bian[0]))
87
+ A3 = ("错卦:{}之{}".format(cuo_ben[0], cuo_bian[0])) # 修正了变量名
88
+ A4 = ("综卦:{}之{}".format(zong_ben[0], zong_bian[0])) # 修正了变量名
89
+ xx = f"{A1}\n{A2}\n{A3}\n{A4}"
90
+ return xx
91
+
92
+
93
+ # 获取当前日期的上一个和下一个节气
94
+ def get_previous_and_next_solar_terms(current_date, solar_terms_dict):
95
+ # 初始化上一个和下一个节气的名称和日期
96
+ previous_term = None
97
+ next_term = None
98
+ previous_date = None
99
+ next_date = None
100
+
101
+ # 遍历节气字典,找到当前日期所在的节气以及上一个和下一个节气
102
+ for term, (month, day) in solar_terms_dict.items():
103
+ if current_date.month > month or (current_date.month == month and current_date.day >= day):
104
+ next_term = term
105
+ next_date = (current_date.year, month, day)
106
+ else:
107
+ if previous_term is None:
108
+ previous_term = term
109
+ previous_date = (current_date.year, month, day)
110
+
111
+ # 如果当前日期在第一个节气之前,则没有上一个节气
112
+ if previous_term is None:
113
+ previous_term = None
114
+ previous_date = None
115
+
116
+ # 如果当前日期在最后一个节气之后,则下一个节气是下一年的第一个节气
117
+ if next_term is None:
118
+ next_year = current_date.year + 1
119
+ for term, (month, day) in solar_terms_dict.items():
120
+ next_term = term
121
+ next_date = (next_year, month, day)
122
+ break
123
+
124
+ # 将日期从元组转换为字符串格式
125
+ previous_date_str = "{},{},{}".format(previous_date[0], previous_date[1],
126
+ previous_date[2]) if previous_date else None
127
+ next_date_str = "{},{},{}".format(next_date[0], next_date[1], next_date[2])
128
+
129
+ return (previous_term, previous_date_str), (next_term, next_date_str)
130
+
131
+
132
+ # 打印结果
133
+ # 日期
134
+ def print_lunar_info_and_bazi(nums_list):
135
+ # 获取今天的日期和时间
136
+ today = datetime.datetime.now()
137
+ # 将今天的日期和时间转换为农历日期
138
+ a = cnlunar.Lunar(today, godType='8char', year8Char='beginningOfSpring')
139
+ # 计算上一个和下一个节气
140
+ previous_and_next_terms = get_previous_and_next_solar_terms(today, a.thisYearSolarTermsDic)
141
+ bengua = find_key_by_value(bagua, get_parity(nums_list))
142
+ biangua = bengua
143
+ # 日期
144
+ # print(a.lunarSeason, str(a.date)[0:19])
145
+ # print(previous_and_next_terms[1][0], previous_and_next_terms[1][1], "到", previous_and_next_terms[0][0],
146
+ # previous_and_next_terms[0][1])
147
+ #
148
+ # # 农历月份和日期
149
+ # print(a.lunarMonthCn, a.lunarDayCn)
150
+ #
151
+ # # 今日八字
152
+ # print(a.year8Char[0] + a.month8Char[0] + a.day8Char[0] + a.twohour8Char[0])
153
+ # print(a.year8Char[1] + a.month8Char[1] + a.day8Char[1] + a.twohour8Char[1])
154
+
155
+ # 目标值并切换元素
156
+ target_value = biangua[1][0]
157
+ cc = toggle_element(target_value)
158
+ return cc
@@ -0,0 +1,109 @@
1
+ Metadata-Version: 2.1
2
+ Name: nonebot-plugin-sanyao
3
+ Version: 0.1.1
4
+ Summary: 三爻易数排盘
5
+ Home-page: https://github.com/afterow/nonebot-plugin-sanyao
6
+ Author: afterow
7
+ Author-email: afterow <afterow@163.com>
8
+ License: AGPL-3
9
+ Project-URL: Homepage, https://github.com/afterow/nonebot-plugin-sanyao
10
+ Project-URL: Bug Tracker, https://github.com/afterow/nonebot-plugin-sanyao/issues
11
+ Classifier: Framework :: Pydantic
12
+ Classifier: License :: OSI Approved :: GNU Affero General Public License v3
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3 :: Only
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Natural Language :: Chinese (Simplified)
18
+ Requires-Python: <4.0,>=3.10
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: cnlunar
22
+
23
+ <div align="center">
24
+ <a href="https://v2.nonebot.dev/store"><img src="resources/nbp_logo.png" width="180" height="180" alt="NoneBotPluginLogo"></a>
25
+ <br>
26
+ <p><img src="resources/NoneBotPlugin.svg" width="240" alt="NoneBotPluginText"></p>
27
+ </div>
28
+
29
+ <div align="center">
30
+
31
+ # nonebot-plugin-sanyao
32
+
33
+ _✨ NoneBot 插件简单描述 ✨_
34
+
35
+
36
+ <a href="./LICENSE">
37
+ <img src="https://img.shields.io/github/license/owner/nonebot-plugin-template.svg" alt="license">
38
+ </a>
39
+ <a href="https://pypi.python.org/pypi/nonebot-plugin-sanyao">
40
+ <img src="https://img.shields.io/pypi/v/nonebot-plugin-sanyao.svg" alt="pypi">
41
+ </a>
42
+ <img src="https://img.shields.io/badge/python-3.8+-blue.svg" alt="python">
43
+
44
+ </div>
45
+
46
+ 这是一个 三爻易数插件
47
+
48
+ ## 📖 介绍
49
+
50
+ 这里是一个 三爻易数插件,后续增加64卦。
51
+
52
+ ## 💿 安装
53
+
54
+ <details open>
55
+ <summary>使用 nb-cli 安装</summary>
56
+ 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
57
+
58
+ nb plugin install nonebot-plugin-sanyao
59
+
60
+ </details>
61
+
62
+ <details>
63
+ <summary>使用包管理器安装</summary>
64
+ 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
65
+
66
+ <details>
67
+ <summary>pip</summary>
68
+
69
+ pip install nonebot-plugin-sanyao
70
+ </details>
71
+ <details>
72
+ <summary>pdm</summary>
73
+
74
+ pdm add nonebot-plugin-sanyao
75
+ </details>
76
+ <details>
77
+ <summary>poetry</summary>
78
+
79
+ poetry add nonebot-plugin-sanyao
80
+ </details>
81
+ <details>
82
+ <summary>conda</summary>
83
+
84
+ conda install nonebot-plugin-sanyao
85
+ </details>
86
+
87
+ 打开 nonebot2 项目根目录下的 `pyproject.toml` 文件, 在 `[tool.nonebot]` 部分追加写入
88
+
89
+ plugins = ["nonebot_plugin_template"]
90
+
91
+ </details>
92
+
93
+ ## ⚙️ 配置
94
+
95
+ 在 nonebot2 项目的`.env`文件中添加下表中的必填配置
96
+
97
+ | 配置项 | 必填 | 默认值 | 说明 |
98
+ |:---:|:--:|:---:|:----:|
99
+ | 无 | 是 | 无 | 配置说明 |
100
+ | 无 | 否 | 无 | 配置说明 |
101
+
102
+ ## 🎉 使用
103
+ ### 指令表
104
+ | 指令 | 权限 | 需要@ | 范围 | 说明 |
105
+ |:--:|:--:|:---:|:--:|:----:|
106
+ | 排盘 | 群员 | 否 | 私聊 | 开始排盘 |
107
+ | 三爻 | 群员 | 否 | 群聊 | 开始排盘 |
108
+ ### 效果图
109
+ 如果有效果图的话
@@ -0,0 +1,12 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ setup.py
5
+ src/nonebot_plugin_sanyao/__init__.py
6
+ src/nonebot_plugin_sanyao/config.py
7
+ src/nonebot_plugin_sanyao/sanyao.py
8
+ src/nonebot_plugin_sanyao.egg-info/PKG-INFO
9
+ src/nonebot_plugin_sanyao.egg-info/SOURCES.txt
10
+ src/nonebot_plugin_sanyao.egg-info/dependency_links.txt
11
+ src/nonebot_plugin_sanyao.egg-info/requires.txt
12
+ src/nonebot_plugin_sanyao.egg-info/top_level.txt