nonebot-plugin-7s-roll:nonebot的掷骰子插件

时间:2024-02-28 22:55:31
【文件属性】:

文件名称:nonebot-plugin-7s-roll:nonebot的掷骰子插件

文件大小:9KB

文件格式:ZIP

更新时间:2024-02-28 22:55:31

Python

掷骰子 扔骰子小工具。 使用 import nonebot from nonebot . adapters . cqhttp import Bot as CQHTTPBot nonebot . init ( _env_file = ".env" ) driver = nonebot . get_driver () driver . register_adapter ( "cqhttp" , CQHTTPBot ) nonebot . load_builtin_plugins () # load other plugins nonebot . load_plugin ( "nonebot_plugin_7s_roll" ) nonebot . run () 其中.env文件除了nonebot的常规配置项外,还有可添加以下配置属性(示例中的是替换值): # 命令名(在 at 机器人时使用,


【文件预览】:
nonebot-plugin-7s-roll-main
----LICENSE(1KB)
----README.md(2KB)
----tests()
--------test_roll_repl.py(816B)
--------__init__.py(0B)
----.gitignore(79B)
----pyproject.toml(1KB)
----nonebot_plugin_7s_roll()
--------config.py(178B)
--------expr.py(5KB)
--------__init__.py(154B)
--------roll.py(2KB)
--------command.py(2KB)
--------common.py(289B)

网友评论