summaryrefslogtreecommitdiff
path: root/ATRI/plugins/plugin_status
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2020-10-25 16:33:33 +0800
committerKyomotoi <[email protected]>2020-10-25 16:33:33 +0800
commitebcb6cb4d5043759e634dcc1bd1a28573d650813 (patch)
tree565552f1e0789860d94558805c75d77c490772e1 /ATRI/plugins/plugin_status
parenta3838cec8eba90936a864f01ee44d3f93410af6e (diff)
downloadATRI-ebcb6cb4d5043759e634dcc1bd1a28573d650813.tar.gz
ATRI-ebcb6cb4d5043759e634dcc1bd1a28573d650813.tar.bz2
ATRI-ebcb6cb4d5043759e634dcc1bd1a28573d650813.zip
[Update]
Diffstat (limited to 'ATRI/plugins/plugin_status')
-rw-r--r--ATRI/plugins/plugin_status/__init__.py20
1 files changed, 6 insertions, 14 deletions
diff --git a/ATRI/plugins/plugin_status/__init__.py b/ATRI/plugins/plugin_status/__init__.py
index d51e2e9..0d89d9d 100644
--- a/ATRI/plugins/plugin_status/__init__.py
+++ b/ATRI/plugins/plugin_status/__init__.py
@@ -35,9 +35,9 @@ async def _(bot: Bot, event: Event, state: dict) -> None:
pass
else:
msg0 = "States parameter:\n"
- msg0 += "- info\n"
- msg0 += "- sqlite\n"
- msg0 += "DEMO: status info"
+ msg0 += "├info\n"
+ msg0 += "└sqlite\n"
+ msg0 += "* DEMO: status info"
await status_info.finish(msg0)
@@ -89,18 +89,10 @@ async def _(bot: Bot, event: Event, state: dict) -> None:
data_r18 = len(cur.fetchall())
con.close()
- con = sqlite3.connect(Path('.') / 'ATRI' / 'data' / 'data_Sqlite' / 'cloudmusic' / 'cloudmusic.db') # cloudmusic
- cur = con.cursor()
- cur.execute("select * from cloudmusic")
- data_cloudmusic = len(cur.fetchall())
- con.close()
-
msg0 = "ATRI status-sqlite:\n"
msg0 += "Setu:\n"
- msg0 += f"│ │ └ normal: {data_normal}\n"
- msg0 += f"│ └ nearR18: {data_nearR18}\n"
- msg0 += f"└ R18: {data_r18}\n"
- msg0 += "CloudMusic:\n"
- msg0 += f"└ Message: {data_cloudmusic}"
+ msg0 += f"├normal: {data_normal}\n"
+ msg0 += f"├nearR18: {data_nearR18}\n"
+ msg0 += f"└R18: {data_r18}"
await status_info.finish(msg0) \ No newline at end of file