Update description
This commit is contained in:
parent
d422d494be
commit
0cc9fd7a76
@ -1,5 +1,4 @@
|
|||||||
# 注意,如无修改能力,勿随意更改顶级的Key
|
# 注意,如无修改能力,勿随意更改顶级的Key
|
||||||
# 建议:如无修改能力,勿改动容器名,即sycgram
|
|
||||||
# 按需改动
|
# 按需改动
|
||||||
|
|
||||||
# 指令 - 例子 - 格式
|
# 指令 - 例子 - 格式
|
||||||
@ -155,7 +154,7 @@ upload:
|
|||||||
download:
|
download:
|
||||||
cmd: download
|
cmd: download
|
||||||
format: -download <无|文件路径>
|
format: -download <无|文件路径>
|
||||||
usage: 回复一条文件/视频/图片/音乐等可下载的消息。如无指定文件路径,则默认存放至容器默认挂载的目录
|
usage: 回复一条文件/视频/图片/音乐等可下载的消息。如无指定文件路径,则默认存放至data目录
|
||||||
|
|
||||||
ip:
|
ip:
|
||||||
cmd: ip
|
cmd: ip
|
||||||
|
@ -16,7 +16,7 @@ from tools.updates import (get_alias_of_cmds, is_latest_version,
|
|||||||
|
|
||||||
@Client.on_message(command("restart"))
|
@Client.on_message(command("restart"))
|
||||||
async def restart(_: Client, msg: Message):
|
async def restart(_: Client, msg: Message):
|
||||||
"""重启容器"""
|
"""重启"""
|
||||||
text = f"**{SYCGRAM_INFO}**\n> # `Restarting {SYCGRAM} ...`"
|
text = f"**{SYCGRAM_INFO}**\n> # `Restarting {SYCGRAM} ...`"
|
||||||
await msg.edit_text(text=text, parse_mode='md')
|
await msg.edit_text(text=text, parse_mode='md')
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
@ -11,7 +11,7 @@ from tools.helpers import Parameters, delete_this, show_cmd_tip, show_exception
|
|||||||
|
|
||||||
@Client.on_message(command("upload"))
|
@Client.on_message(command("upload"))
|
||||||
async def upload(cli: Client, msg: Message):
|
async def upload(cli: Client, msg: Message):
|
||||||
"""上传容器内的文件"""
|
"""上传文件"""
|
||||||
cmd, where = Parameters.get(msg)
|
cmd, where = Parameters.get(msg)
|
||||||
if not where:
|
if not where:
|
||||||
return await show_cmd_tip(msg, cmd)
|
return await show_cmd_tip(msg, cmd)
|
||||||
@ -37,7 +37,7 @@ async def upload(cli: Client, msg: Message):
|
|||||||
|
|
||||||
@Client.on_message(command("download"))
|
@Client.on_message(command("download"))
|
||||||
async def download(_: Client, msg: Message):
|
async def download(_: Client, msg: Message):
|
||||||
"""下载目标消息的文件到挂载目录"""
|
"""下载目标消息的文件"""
|
||||||
cmd, where = Parameters.get(msg)
|
cmd, where = Parameters.get(msg)
|
||||||
replied_msg = msg.reply_to_message
|
replied_msg = msg.reply_to_message
|
||||||
if not replied_msg:
|
if not replied_msg:
|
||||||
|
Loading…
Reference in New Issue
Block a user