Skip to main content

nonebot-plugin-mcsmanager

摸

还没写完

工作思路

mcsm已有用户

flowchart TD
    用户在mcsm上创建APIKEY
        --> 绑定mcsm面板端
        --> d["即可使用所有功能(包括授权)"]

授权个人

flowchart TD
    非mcsm用户
        --> 让已绑定的用户主动进行授权
        --> a[即可使用基本功能包括]
    a --> b["开关重启实例(需授权)"]
    a --> c[查看实例列表]
    a --> d["向实例发送指令(需授权)"]

基本指令

使用 mcsm --help 查询,相关指令也可以用类似的方法,例如 mcsm admin --help 等

绑定

  • 超级管理员使用 mcsm bind [url] [apikey] [userid] 来绑定某人/自己为实例管理
    • 需要自行获取 mcsm 的 apikey
    • userid 为该平台的指定用户ID,例如QQ号,可以填写自己或别人的
  • 绑定完成后,使用 mcsm admin add_user [name] [remote_uuid] [instance_uuid] [userid]
    • name 为自己起的名字,方便区分以及后续使用开关指令
    • remote_uuid 为节点ID 可在实例页面中复制
    • instance_uuid 为实例ID 可在实例页面中复制
    • userid 为该平台的指定用户ID,例如QQ号,可以填写自己或别人的
    • 实例管理也需要绑定这些信息

解绑用户绑定

还没做

获取服务器信息

还没做

开关服务器

  • mcsm on [name]
    • name 之前起的名字
    • name 可选,可以不写直接 mcsm on 会打印列表供选择,根据提示回复即可
  • mcsm off/restart 等同上

向服务器发送指令

还没做

TODO

  • 修改架构,使其可以直接接管mcsm的普通用户所有实例
  • 完善功能

Metadata

Release files for nonebot-plugin-mcsmanager 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot-plugin-mcsmanager 0.1.0
File Size Uploaded
nonebot_plugin_mcsmanager-0.1.0.tar.gz 9.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-mcsmanager 0.1.0
File Interpreter ABI Platform
nonebot_plugin_mcsmanager-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 21.4 kB

Release files / nonebot_plugin_mcsmanager-0.1.0.tar.gz

Download URL nonebot_plugin_mcsmanager-0.1.0.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
870100906c3b71951f32e427042c491e6dbadef646bba5b8309b6559607d07e5
BLAKE2b-256 checksum
How to use checksums
a8dfe5f870f14f69b64f474a905c0627abaa67144447012d41593aae344aaafc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / nonebot_plugin_mcsmanager-0.1.0-py3-none-any.whl

Download URL nonebot_plugin_mcsmanager-0.1.0-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
368f7e192df9270263570dbf6ac33d2b7a2b27869d54bb2285309a57d37ba65b
BLAKE2b-256 checksum
How to use checksums
5aa2525921852551e8c4a1b0e50ebf6ea9902fea9f844e4b03854a88c9faca48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page