-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path__import_example.py
More file actions
55 lines (45 loc) · 1.43 KB
/
__import_example.py
File metadata and controls
55 lines (45 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
r"""
# @author XJJ
# @name import_example
# @team XJJ
# @version 1.0.0
# @platform ['tgBot', 'HumanTG', 'ssh']
# @rule ^impt$
# @description import包的一些注意事项
# @admin True
# @disable False
# @classification ["Default", "System"]
# @service False
# @priority 99999
"""
# ruff: noqa: F401
from typing import TYPE_CHECKING
from XJJ.util import tool # 使用基于/python目录的绝对路径导包
# 尽可能将被依赖的模块放到深层文件夹下,尽可能按依赖性由重到轻的顺序排序模块名,这与加载顺序有关
if TYPE_CHECKING:
from type.python import (
BncrDB,
BncrPluginConfig,
MethodClass,
Sender,
router,
sysMethod,
)
async def main(s: Sender):
tool.tool_hello(s.getMsg())
# fmt: off
__META_INFO__ = {"author": "XJJ",
"name": "import_example",
"team": "XJJ",
"version": "1.0.0",
"platform": ["tgBot", "HumanTG", "ssh"], # or None
"rule": [r'^impt$'], # or []
"description": 'import包的一些注意事项',
"admin": True, # or False
"disable": False,
"classification": ["Default", "System"],
"service": False,
"priority": 99999,
"cron": None, # or None
}
# fmt: on